Altova Mailing List Archives

Re: [xsl] comparing following nodes and re-structuring.

From: Andrew Welch <andrew.j.welch@-----.--->
To: xsl-list@-----.------------.---
Date: 12/6/2011 2:24:00 PM
On 6 December 2011 14:17,  <charlieo0@c...> wrote:
> I could use some help with the following problem.
> I have an XML instance that is a long list of table entries. I need to compare text nodes and if they are the same, restructure an aspect of the row. I have been able to write something that will compare only the first following and first preceding rows, but I need to be able to traverse multiple rows until the matching stops. If there is no duplicate NSN, then merely copy the row as is.

Use a for-each-group selecting the nsnindxrow, grouping on the nsn,
and within its body use copy-of="current-group()/callout" to get all
the callouts for that nsn (the current-grouping-key())

Andrew Welch

XSL-List info and archive:
To unsubscribe, go to:
or e-mail: <mailto:xsl-list-unsubscribe@l...>


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.