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(_at_)exceltech-lanka(_dot_)com>
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--