Re: [xsl] Testing type of a param

Subject: Re: [xsl] Testing type of a param
From: "Steve Muench" <Steve.Muench@xxxxxxxxxx>
Date: Tue, 15 May 2001 21:57:42 -0700
|   If value is a node set, xsl:copy-of is used.
|   If value is a simple value, xsl:value-of is used.

Just use <xsl:copy-of> in both cases.

See section 11.3 of the XSLT 1.0 spec on <xsl:copy-of>

"When the result is neither a node-set nor a 
 result tree fragment, the result is converted to 
 a string and then inserted into the result tree, as
 with xsl:value-of."

______________________________________________________________
Steve Muench, Lead XML Evangelist & Consulting Product Manager
BC4J & XSQL Servlet Development Teams, Oracle Rep to XSL WG
Author "Building Oracle XML Applications", O'Reilly
http://www.oreilly.com/catalog/orxmlapp/



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


Current Thread