Re: exslt:node-set differs between Xalan-J and XSLTC

Julian Reschke <[email protected]> Thu, 21 Oct 2010 17:48:57 +0200
Newsgroups gmane.text.xml.xalan.java.user
Message-ID <[email protected]>
On 21.10.2010 17:41, Mukul Gandhi wrote:
> On Thu, Oct 21, 2010 at 8:35 PM, Julian Reschke<[email protected]>  wrote:
>> "The purpose of the exsl:node-set function is to return a node-set from a
>> result tree fragment. If the argument is a node-set already, it is simply
>> returned as is..."
>
> If you've a node-set already then what's the use of passing that again
> to node-set function? Why can't the original node-set be used as it
> is?

You may be writing a template and want to allow callers to send either a 
node set or a RTF.

> The most important aspect of node-set function is to convert RTF to
> node-set, and that works fine with Xalan.
>
> Do you really need an identity conversion of a node-set to a similar
> node-set for practical needs? If yes, then is the type of input to

See above.

Besides that, consistency with other implementations, and conformance to 
the specification should be reasons enough, methinks.

> ...

Best regards, Julian