1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:abcd="urn:fr:cache" >
<xsl:output method="xml" indent="yes" />
<xsl:template match="/abcd:Archive">
<xsl:apply-templates select="ContentDescription" />
</xsl:template>
<xsl:template match="ContentDescription">
<DOCUMENT>
<xsl:apply-templates select="ContentDescriptive" />
</DOCUMENT>
</xsl:template>
<xsl:template match="ContentDescriptive">
<xsl:variable name="toto"><xsl:apply-templates select="KeywordType" /></xsl:variable>
<xsl:element name ="{$toto}">
<xsl:apply-templates select="KeywordContent" />
</xsl:element>
</xsl:template>
<xsl:template match="KeywordType">
<xsl:value-of select="." />
</xsl:template>
<xsl:template match="KeywordContent">
<xsl:value-of select="." />
</xsl:template>
</xsl:stylesheet> |