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

Re: Call Template processing problem

Subject: Re: Call Template processing problem
From: "Nick Fitzsimons" <nick@xxxxxxxxxxxxxx>
Date: Mon, 7 Nov 2005 16:39:34 -0000 (GMT)
Re:  Call Template processing problem
> <xsl:with-param name="length1" select="2" />
> <xsl:with-param name="sstr" select="somestring" />

In your first param, you are passing the number 2, but your second one is
looking for a child node of the element you are matching on whose name is
"somestring". Presumably you want to pass that actual string, so:

<xsl:with-param name="sstr" select="'somestring'" />

will do it.

The content of the "select" attribute is an XPath expression, and the
single quotes make it an XPath expression whose value is a string. In your
first with-param, the value of the expression can only be a number, so it
works as you expected.

HTH,

Nick.
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/

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-2013 All Rights Reserved.