You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.1 KiB
27 lines
1.1 KiB
<?xml version="1.0" encoding="UTF-8"?> |
|
<!-- Stylesheet zur Erzeugung von svg-Grafiken auf SVG-Fonts |
|
Aufruf: sx_transform.x -IN:fontello.xml -XSL:webfont2svg.xsl -OUT:font.log -method:text |
|
|
|
--> |
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> |
|
<xsl:output method="xml" name="xml"/> |
|
<xsl:template match="/"> |
|
|
|
<xsl:for-each select="svg/defs/font/glyph"><!--[@glyph-name='scissors']--> |
|
<xsl:value-of select="concat('Erzeuge Datei',@glyph-name,'.svg')"/><xsl:text> |
|
</xsl:text> |
|
|
|
<xsl:variable name="svgfile" select="concat(@glyph-name,'.svg')"/> |
|
Generiere <xsl:value-of select="$svgfile"/><xsl:text> |
|
</xsl:text> |
|
<!--output method mit NAME text ist wichtig, damit sich result-document darauf beziehen kann--> |
|
<xsl:result-document href="{$svgfile}" format="xml"> |
|
<svg width="{@horiz-adv-x}px" version="1.1" xmlns="http://www.w3.org/2000/svg" > |
|
<path transform="{concat('scale(1, -1) translate(0, -',@horiz-adv-x,')')}"> |
|
<xsl:attribute name="d"><xsl:value-of select="@d"/></xsl:attribute> |
|
</path> |
|
</svg> |
|
</xsl:result-document> |
|
</xsl:for-each> |
|
</xsl:template> |
|
</xsl:stylesheet> |