Subject: Re: [xsl] Which is less expensive group by or select distinct-values From: "Dan Vint dvint@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 16 Jul 2016 19:20:22 -0000 |
<topic> <topic>.....</topic> <topic>.....</topic> <topic>.....</topic> ... </topic>
Another option that you could try to see how it affects memory usage [1]:
<xsl:key name="terms" match="term[empty(@keyref)]" use="true()" />
<data type="topicreport" name="WDTermList"> <xsl:value-of separator=", "> <xsl:perform-sort select="distinct-values(key('terms', true()))"> <xsl:sort select="." /> </xsl:perform-sort> </xsl:value-of> </data>
(borrowing the xsl:perform-sort idea from Martin Honnen, and assuming that the context node is the document element.)
Regards,
Tony Graham.
--------------------------------------------------------------------------- Danny Vint
Panoramic Photography http://www.dvint.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Which is less expensive g, Tony Graham tgraham@ | Thread | Aw: [xsl] Which is less expensive g, Martin Honnen martin |
Re: [xsl] Which is less expensive g, Tony Graham tgraham@ | Date | [xsl] Need your recommendation plea, Costello, Roger L. c |
Month |