xsl-list
[Top] [All Lists]

Re: [xsl] distinguish whether variable holds string or node set

2010-06-13 17:48:52

Is there a way to determine whether a variable holds a string or a
node set?

In pure XSLT 1.0, no.

There is an EXSLT extension function (I've forgotten the name) that allows such testing: it might be implemented for your chosen processor(s).

Michael Kay
Saxonica

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--