[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: comparing following nodes and re-structuring.
On 2011-12-06 15:24, Andrew Welch wrote:
On 6 December 2011 14:17,<charlieo0@xxxxxxxxxxx> wrote:I could use some help with the following problem. Like that: <xsl:template match="nsnindx"> <xsl:copy> <!-- group-by="nsn" assumption: the string value of nsn is unique for every possible combination of fsc and niin --> <xsl:for-each-group select="nsnindxrow" group-by="nsn"> <!-- the context item is the first item in each group, so copy and copy-of work on the first group item and its nsn child, respectively: --> <xsl:copy> <xsl:copy-of select="nsn" /> <xsl:sequence select="current-group()/callout" /> </xsl:copy> </xsl:for-each-group> </xsl:copy> </xsl:template>
|
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
|