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

Re: with-param problem

Subject: Re: with-param problem
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 03 Feb 2005 18:54:43 +0000
colin 2005 problem
>>>>> "Wim" == Wim Janssen <Wim.Janssen@xxxxxxxxxxxxxxxxx> writes:

    Wim> Hi, I'm working on a master thesis about XSLT.
 
    Wim> I found a problem and I don't know wether it is a bug in
    Wim> saxon (version 8.0).
 
    Wim> Take a look a this little program
 
    Wim>  <xsl:template match="/a"> <xsl:element name="S">
    Wim> <xsl:call-template name="f"> <xsl:with-param name="p1"
    Wim> select="3"/> <xsl:with-param name="p2" select="$p1 + 2"/>
    Wim> </xsl:call-template> </xsl:element> </xsl:template>
 
It's not a bug. There is no variable or parameter named p1 in scope.
There IS a parameter named p1 in scope within the template named f,
but you are not within that template.
-- 
Colin Paul Adams
Preston Lancashire

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.