xsl-list
[Top] [All Lists]

Re: xsl:sort now working under unix

2004-12-22 16:59:41
Hi Sylvia,

  <xsl:for-each select="/runs/case">
    <!--ascending or descending-->
    <xsl:apply-templates select="document(@filename)/case">
<xsl:sort select="/case/status" data-type = "text" order="descending"/>
    </xsl:apply-templates>
  </xsl:for-each>

xsl:apply-templates sets the context node to a case element, and status is a child element of case,
so you'll need <xsl:sort select="status" .../>

I don't think a sort select expression should ever start with "/": it is a valid XPath expression but it's "fixed"
(ie. it doesn't change over the various elements you apply-templates to.)

Cheers,
Anton

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