xsl-list
[Top] [All Lists]

RE: How to test if the variable contains nodeset or not

2003-06-05 05:54:09
Hi,

Now I need to test, if a parameter within called template 
contains nodeset
or it contains string, because when it is not handled I get 
exception > The
value is not a node-set

There's no XSLT way of doing this. See 
<http://exslt.org/exsl/functions/object-type/index.html>. If extension function 
is out of the question, then you just have to make sure the input is always 
either a string or a node-set... well, you can handle the node-set as if it was 
a string, but still.

Cheers,

Jarno - Nick Sentience: March 2003 Mix

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>