1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/Common/PEP241/Resources/pep241_categories.xsl Wed Dec 22 00:35:03 2004 +0000
1.3 @@ -0,0 +1,25 @@
1.4 +<?xml version="1.0" encoding="utf-8"?>
1.5 +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
1.6 + xmlns:template="http://www.boddie.org.uk/ns/xmltools/template"
1.7 + version="1.0">
1.8 +
1.9 + <xsl:param name="categories"/>
1.10 +
1.11 + <xsl:template match="discriminator">
1.12 + <xsl:copy>
1.13 + <xsl:element name="category">
1.14 + <xsl:attribute name="value"><xsl:value-of select="@category"/></xsl:attribute>
1.15 + <xsl:copy-of select="$categories/category/category-enum"/>
1.16 + </xsl:element>
1.17 + </xsl:copy>
1.18 + </xsl:template>
1.19 +
1.20 + <!-- Replicate unknown elements. -->
1.21 +
1.22 + <xsl:template match="@*|node()">
1.23 + <xsl:copy>
1.24 + <xsl:apply-templates select="@*|node()"/>
1.25 + </xsl:copy>
1.26 + </xsl:template>
1.27 +
1.28 +</xsl:stylesheet>