[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Nesting xsl:call-template

Subject: Re: Nesting xsl:call-template
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 3 Apr 2007 16:51:37 +0100
Re:  Nesting xsl:call-template
		<xsl:value-of select="$ValueRow"/>


value-of gives teh string value of the selected node. You don't want teh
string value (which loses all element information) you want a copy of
the result tree fragment, so that's

		<xsl:copy-of select="$ValueRow"/>

incidentally it's a lot more efficient to go

	<xsl:with-param name="Value" select="'This is some text.'"/>

rather than

	<xsl:with-param name="Value">This is some text.</xsl:if></xsl:with-param>

one makes $Value a string, the other makes it a root tree fragment
consisting of a root node with child a text node with string value the
required string,

David

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.