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"?>
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0"
xmlns:ixr="http://www.nrf-arts.org/IXRetail/namespace/" >
<xsl:template match="/">
<xsl:apply-templates select="ixr:Price/ixr:PriceMessage"/>
</xsl:template>
<xsl:template match="ixr:PriceMessage">
<xsl:for-each select=".">
<xsl:value-of select="@MessageID"/>
<xsl:apply-templates select="ixr:PriceRuleSet"/>
</xsl:for-each>
</xsl:template>
<xsl:template match="ixr:PriceRuleSet">
<xsl:for-each select=".">
<xsl:if test="ixr:ItemID[@Type='DEPT']">
('','','<xsl:value-of select="ixr:PriceRule/ixr:PriceRuleID"/>','YES'),
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet> |