Subject: Re: [xsl] xsl:sort on fn:collection() ? From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Fri, 21 Mar 2008 15:08:08 +0100 |
Is it possible to sort a collection based on filename?
For example:
<xsl:apply-templates select="collection($model-path)" mode="model"> <xsl:sort/> </xsl:apply-templates>
By default, it does not seem to apply in file system order. If I use xsl:sort, what would I sort on?
If you want to sort on the file name then you could try <xsl:sort select="tokenize(document-uri(/), '/')[last()]"/>
Martin Honnen http://JavaScript.FAQTs.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl:sort on fn:collection() ?, Robert Koberg | Thread | Re: [xsl] xsl:sort on fn:collection, Robert Koberg |
[xsl] xsl:sort on fn:collection() ?, Robert Koberg | Date | Re: [xsl] xsl:sort on fn:collection, Robert Koberg |
Month |