Skip to content

zegami/zeg-xslt-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a repository for advanced zeg creation using XSLT SVG creation.

Hand-making XSLTs for each and every collection takes a great deal of time, and doesn't easily allow for a consistent look / feel between collections. The templates in this repository do the majority of the zeg creation leg work for you, setting up the right sizes color uses, fonts and weights, and scalability when zooming.

These templates DO require you to tell them how to view your data: There are 4 sections to these templates:

1. Column reading - Copying from the example, assign your data's columns to variables for later use.

2. Variable recognition - Taking note of the example, there are some key variable names that should not be modified due to their use later in the file. These key variables need to be told what data are representing, so you typically assign your previously defined column data variables to these. If you like, you may also add some logic for these (see gender salaries example), such as an xsl:choose, xsl:when to determine what the key variable buttonMainText should dynamically hold.

3. Color scheme - The color scheme is simplified into 4 colors of varying shades. Simply replace these hexidecimal color codes with your desired palette colors and you're off. You can assign these dynamically using choose / when statements if you wish (such as pink / blue in the gender salaries example).

4. SVG generation - This does not require any modification. These templates have been built with the intention that this section can be left alone. If there is an issue with this section, it is most likely a bug. Having said this, feel free to modify this section if absolutely necessary to change the look of the zegs or nudge some text around, but it may be the case that is is simply the wrong template for you.

About

The xslt's associated with some zeg template svg's

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages