[Home] [By Thread] [By Date] [Recent Entries]
Mark Wilson wrote:
I have two elements that differ only by attribute. My for-each-group code currently considers them to be identical, so I need to distinguish them by their attributes as well as their text node. I do not know enough about XPath yet to construct a proper current-grouping-key(). (I'm reading Michael Kay's 4th edition, but have not covered the XPath section yet). Everything I have tried with | @* has failed. I am not sure I understand what you want to achieve. If you want group by the Heading elements which have an attribute entry="author" then you can do that with <xsl:for-each-group select="Item" group-by="Heading[@entry = 'author']"> -- Martin Honnen http://JavaScript.FAQTs.com/
|

Cart



