[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: regarding unique nodes in a nodelist-variable
Hello Laura,
you can test your code in a simple way: add the expected structure into an XML file and the XSL code to a simple XSL file: <xsl:template match="/"> <xsl:for-each select="/elements/element[not(parent/childelement = preceding-sibling::element/parent/childelement)]"> <xsl:value-of select="."/> </xsl:for-each> </xsl:template> You will see that it works like expected. And it's a must, that it works in the same way with variables. The problem can be the implementation of the nodeset() function. It's an extension and so not conform to any specification beside the implementer's one. Extension function should be avoided therefore where possible. What for are you using it? Maybe it's simpler to work without it and use a grouping mechanism like Muenchian Grouping. Regards, Joerg Laura wrote: Hello all, This is regarding the sorting on unique nodes. I am using the axis method to sort it. eg.. not( parent/child = preceding-sibling::parent/child) XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|