|
Subject: RE: [xsl] sorting titles w stopwords but w/o value in every title node From: "Michael Kay" <mhk@xxxxxxxxx> Date: Thu, 2 Sep 2004 12:55:54 +0100 |
> <xsl:variable name="output">
> <xsl:for-each select="//section-02">
> <xsl:sort
> select="exsl:node-set($sort-titles)/*[@doc-number =
> current()/doc-number]"/>
If you're lucky, the optimizer will extract
exsl:node-set($sort-titles)/*
as a subexpression that can be evaluated outside the loop.
In case you're not so lucky, it would be better to put it in a variable:
<xsl:variable name="ref" select="exsl:node-set($sort-titles)/*"/>
<xsl:variable name="output">
<xsl:for-each select="//section-02">
<xsl:sort
select="$ref[@doc-number = current()/doc-number]"/>
Or even better, use a key.
Michael Kay
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] sorting titles w stopword, cking | Thread | Re: [xsl] sorting titles w stopword, cking |
| Re: [xsl] sorting titles w stopword, cking | Date | [xsl] Output method html, Kaarle Kaila |
| Month |