This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Testing type of a param


|   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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]