Re: distinguish whether variable holds string or node
no in xslt 1 all you can do is a static analysis of all teh places where your template is called and see if it is called with the smae type always.
Note that makes the default value an epty string which is dangerous if the value passed in is going to be a node set and you want to do $arg/some/path. Safer is to declare it as
<xsl:param name="arg" select="/.."/>
so the default value is a (empty) node set and then it is safe to do
without having to test the type, so long as you always pass in a node set.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format