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.
Martin(_dot_)Honnen(_at_)gmx(_dot_)de wrote:
Is that XSLT/XPath 1.0 or 2.0?
With 2.0 there is the operator 'instance of':
$v instance of node()
I'm using 2.0 and this does exactly what I need. Great advice as usual!
Thanks - Rowan
--------------------------------------------------------------------
mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange
--~------------------------------------------------------------------
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>
--~--