rowan(_at_)sylvester-bradley(_dot_)org wrote:
How do I test a variable to see whether it contains a node, or something
else (usually, in the case I'm working on, an empty string)? Everything I
try causes an error if the variable contains a string. I have some code
that will only work on nodes, and before calling this code I need to test
and do something different if the variable doesn't contain a node.
Is that XSLT/XPath 1.0 or 2.0?
With 2.0 there is the operator 'instance of':
$v instance of node()
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
--~------------------------------------------------------------------
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>
--~--