xsl-list
[Top] [All Lists]

RE: Re: Collation for dotted decimal?

2006-02-06 14:50:38
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"/>
</xsl:for-each>

Obviously this doesn't scale well :)
==============================
Reply:

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

-- 
Charles Knell
cknell(_at_)onebox(_dot_)com - email



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--