xsl-list
[Top] [All Lists]

Re: [xsl] sort elements in external document

2007-05-15 06:17:07
David Carlisle wrote:

  Hi

<xsl:for-each select="file">
  <xsl:sort select="document(file)/date"/>
  <xsl:value-of select="."/>
  <xsl:text> </xsl:text>
  <xsl:value-of select="document(file)/date"/>
</xsl:for-each>

  I guess you meant the following ;-) :

    <xsl:for-each select="file">
      <xsl:sort select="document(.)/date"/>
      <xsl:value-of select="."/>
      <xsl:text> </xsl:text>
      <xsl:value-of select="document(.)/date"/>
    </xsl:for-each>

  Regards,

--drkm





















      
_____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>