p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

xslt thread: -- any good way to do by Date? (dates of varying forma- ts ..)


Message #1 by rnagel@i... on Thu, 19 Jul 2001 18:06:30 -0700
> My problem is that then when I
> attempt:
> 
> <xsl:for-each select='$DateSortedNodes/list/item'>
>   <xsl:sort select="@TheDate" data-type="number" order="ascending"/>
>     < .... more xsl stuff ...  >
> </xsl:for-each
> 
> ... I get a "cannot convert to node-set" error.
> 
> Am I doing something wrong ? 

At this point you need to use the xx:node-set() extension function:

<xsl:for-each select="xx:node-set($DateSortedNodes)/list/item"

Mike Kay
Software AG 

  Return to Index