RE: Re: [xsl] Collation for dotted decimal?

Subject: RE: Re: [xsl] Collation for dotted decimal?
From: cknell@xxxxxxxxxx
Date: Mon, 06 Feb 2006 16:50:38 -0500
How about the brute force technique:
> From Andrew Welch
<xsl:for-each-group ...>
  <xsl:sort select="tokenize(.,'\.')[1]" data-type="number"/>
  <xsl:sort select="tokenize(.,'\.')[2]" data-type="number"/>
  <xsl:sort select="tokenize(.,'\.')[3]" data-type="number"/>
  <xsl:sort select="tokenize(.,'\.')[4]" data-type="number"/>
  <xsl:sort select="tokenize(.,'\.')[5]" data-type="number"/>
  <xsl:sort select="tokenize(.,'\.')[6]" data-type="number"/>

Obviously this doesn't scale well :)

Thanks, that could work in a pinch, but I was hoping someone could give me a more general solution.

Charles Knell
cknell@xxxxxxxxxx - email

Current Thread