Subject: Re: [xsl] Using XSLT to build an index From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 31 Oct 2011 12:38:19 +0000 |
<xsl:for-each-group select="Text" group-by="tokenize(@data,'\s+')"> <xsl:for-each select="current-group()"> <xsl:sort select="current-grouping-key()" lang="cz"/> <Word title="{@title}" ref="{@ref}"> <xsl:value-of select="."/> </Word> </xsl:for-each> </xsl:for-each-group>
And received the warning: "Sort key will have no effect because its value does not depend on the context item"
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Using XSLT to build an in, Michael Kay | Thread | Re: [xsl] Using XSLT to build an in, Mark |
Re: [xsl] Using XSLT to build an in, Michael Kay | Date | [xsl] Warning: The attribute axis s, Mark |
Month |