This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Testing type of a param
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] Testing type of a param
- From: "Steve Muench" <Steve dot Muench at oracle dot com>
- Date: Tue, 15 May 2001 21:57:42 -0700
- References: <3B01FE55.ED631FBA@outreach.hawaii.edu>
- Reply-To: xsl-list at lists dot mulberrytech dot com
| 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