[xsl] Variable : string or temporary tree

Subject: [xsl] Variable : string or temporary tree
From: "Siarhei Biarozkin" <sberyozkin@xxxxxxxxxx>
Date: Mon, 13 May 2002 09:41:19 +0100
What is the best way to find out whether a variable is a string or a tree ?
For example, 

<xsl:variable name="cmdRequest" select='Z_ShowFile'> 
<xsl:variable name="cmdRequest"> 
As I'm new to XSLT, the only way I can think of is  :

<xsl:variable name="treeTest">
    <xsl:copy-of select="$cmdRequest"/>
  <xsl:when test="$treeTest/node/node()">
    <!-- $cmdRequest is a tree -->
    <!-- $cmdRequest is a string -->

Is there a shorter way to test it ?
Thank you
Siarhei Biarozkin

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

Current Thread