W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2002

Re: [xsl] Passing sort criteria as a paramter

From: Jeni Tennison <jeni@jenitennison.com>
Date: Mon, 4 Feb 2002 12:49:03 +0000
Message-ID: <11611320963.20020204124903@jenitennison.com>
To: xsl-editors@w3.org
CC: "'Jonas Sicking'" <sicking@bigfoot.com>, "Kay, Michael" <Michael.Kay@softwareag.com>
>> Why not use a similar solution as the document() function (which i
>> must say is one of the most ingenious parts of XSLT1.0), where you
>> can use a nodeset as first argument and thus use the nodes in that
>> nodeset as resolver, or give a second argument to use as resolve
>> node. Of course evaluate() would only use the first node in the
>> nodeset in the first argument, but that is what would happen even
>> if just a string was accepted as first argument.

If this were the case, it would be useful to have some method of
identifying the 'here' in the stylesheet context itself (i.e. the node
would be the XSLT instruction containing the XPath expression). So if
you construct an expression as a string using the prefixes as declared
in the stylesheet, then these will be resolved properly when the
expression was evaluated. Perhaps this would be the case if the first
and only argument was a string (rather than a node)?

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Monday, 4 February 2002 07:49:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:52 GMT