Re: [xsl] Passing sort criteria as a paramter

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