Subject: Re: [xsl] Filtering duplicate tags From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx> Date: Tue, 27 May 2008 14:34:55 +0530 |
Muenchian grouping will generally be faster for large data sets. But here is probably a simple to understand 1.0 solution: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" indent="yes" /> <xsl:template match="root"> <root> <xsl:for-each select="data[not(@name = preceding-sibling::data/@name)]"> <xsl:copy-of select="." /> </xsl:for-each> </root> </xsl:template> </xsl:stylesheet> On 5/27/08, Buddhi D. Mahindarathne <buddhi@xxxxxxxxxxxxxxxxxxx> wrote: > > hi Mukul / All > > Can you please provide a Version 1.0 sample, because I am using this > with Windows .Net 1.1 C#, there I am getting following error. > > " cannot be a child of " element > > - Buddhi - -- Regards, Mukul Gandhi
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Filtering duplicate tags, Andrew Welch | Thread | [xsl] conditional display of conten, Ganesh Babu N |
Re: [xsl] Filtering duplicate tags, Andrew Welch | Date | Re: [xsl] conditional display of co, Andrew Welch |
Month |