Subject: Re: [xsl] Sorting with Different Sort Keys From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Fri, 19 Oct 2007 11:26:23 +0200 |
<xsl:sort select="matches(., '\s*seite', 'i')" order="descending" />
<xsl:sort select="not(matches(., '^\d+$'))" order="ascending" />
<xsl:sort select="replace(., '\D', '')" order="ascending" data-type="number" />
note that technically the last line is semantically equivalent with the last line posted by Michael (and my order="ascending" is redundant):
<xsl:sort select="number(replace(., '[^0-9]', ''))"/>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Sorting with Different So, Abel Braaksma | Thread | [xsl] [XSL] Counting Child Nodes?, Alice Ju-Hsuan Wei |
Re: [xsl] Sorting with Different So, Abel Braaksma | Date | [xsl] [XSL] Counting Child Nodes?, Alice Ju-Hsuan Wei |
Month |