1
0
mirror of git://projects.qi-hardware.com/m1.git synced 2024-11-16 21:36:14 +02:00
m1/cad/dia_set_line_width.xsl
2011-01-13 22:03:09 +00:00

42 lines
1.5 KiB
XML

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dia="http://www.lysator.liu.se/~alla/dia/" >
<xsl:output method="xml" encoding="UTF-8" />
<xsl:param name="line_width" />
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<!--xsl:template match="dia:real" >
<xsl:element name="dia:real">
<xsl:attribute name="val">
<xsl:value-of select="$line_width" />
</xsl:attribute>
</xsl:element >
</xsl:template-->
<!-- xsl:template match="dia:attribute[@name='line_width']/dia:real" >
<dia:attribute name="line_width">
<xsl:element name="dia:real">
<xsl:attribute name="val">
<xsl:value-of select="$line_width" />
</xsl:attribute>
</xsl:element >
</dia:attribute>
</xsl:template -->
<xsl:template match="dia:attribute[@name='line_width']/dia:real" >
<xsl:element name="dia:real">
<xsl:attribute name="val">
<xsl:value-of select="$line_width" />
</xsl:attribute>
</xsl:element >
</xsl:template>
</xsl:stylesheet>