[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: JBryant@xxxxxxxxx
Date: Thu, 3 Feb 2005 12:54:17 -0600
with param
That's not a bug in Saxon. That's the nature of XSLT. The with-param 
element does not create a variable in the calling context, so $p1 does not 
exist in the context where you tried to use it.

Jay Bryant
Bryant Communication Systems



Wim Janssen <Wim.Janssen@xxxxxxxxxxxxxxxxx> 
02/03/2005 12:45 PM
Please respond to
xsl-list@xxxxxxxxxxxxxxxxxxxxxx


To
xsl-list@xxxxxxxxxxxxxxxxxxxxxx
cc

Subject
 with-param problem






Hi,
 
I'm working on a master thesis about XSLT.
 
I found a problem and I don't know wether it is a bug in saxon (version 
8.0).
 
Take a look a this little program
 
 <xsl:template match="/a">
  <xsl:element name="S"> 
   <xsl:call-template name="f">
    <xsl:with-param name="p1" select="3"/>
    <xsl:with-param name="p2" select="$p1 + 2"/>
   </xsl:call-template>
  </xsl:element>
 </xsl:template>
 
 <xsl:template name="f">
  <xsl:param name="p1"/>
  <xsl:param name="p2"/>
 </xsl:template>
 
The problem is the param named "p2".  It uses param "p1".  Why is that not
allowed in XSLT? Or is it maybe a bug in Saxon?
 
I'm sorry for my terrible English!
 
greetings
 
Wim Janssen

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.