123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" xmlns:exsl="http://exslt.org/common" xmlns:xalan="http://xml.apache.org/xalan" xmlns:java="http://xml.apache.org/xalan/java" extension-element-prefixes="xalan date exsl" exclude-result-prefixes="xalan java date exsl">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes"/>
-
- <xsl:key name="upgrademun" match="upgradeResponse/members/member" use="@mun"/>
- <xsl:template match="member|ci[@type='member']">
- <xsl:element name="{name()}">
-
- <xsl:for-each select="@*">
- <xsl:copy-of select="."/>
- </xsl:for-each>
-
- <xsl:variable name="mun">
- <xsl:value-of select="."/>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="key('upgrademun', $mun)">
- <xsl:value-of select="key('upgrademun', $mun)/@replacement"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:element>
- </xsl:template>
- <xsl:template match="upgradeResponse">
-
- </xsl:template>
-
- <xsl:template match="@*|node()">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
|