Topic: Bug of ignoring of repeating nodes using xslt (Page 1 of 1) |
|
---|---|
Neurotic (0) Inmate Newly admitted From: |
posted 08-02-2008 17:30
I?ve got the problem. code: <root> <Info Currency="USD" Denomination="20" amount="21" /> <Info Currency="RUB" Denomination="10" amount="12" /> <Info Currency="RUB" Denomination="10" amount="22" /> <Info Currency="RUB" Denomination="100" amount="12" /> <Info Currency="RUB" Denomination="500" amount="91" /> <Info Currency="RUB" Denomination="10" amount="521" /> <Info Currency="USD" Denomination="100" amount="21" /> </root>
code: <xsl:for-each select="root/Info[(not(@Denomination=preceding-sibling::Info/@Denomination)) and @Currency='RUB']"> <xsl:sort select="@Denomination" data-type="number" order="ascending" /> <xsl:value-of select="@Denomination"/> руб.<br/> </xsl:for-each>
|
Obsessive-Compulsive (I) Inmate From: |
posted 08-02-2008 19:15
Solution has found |