xsl-list
[Top] [All Lists]

Re: with-param problem

2005-02-03 11:54:17
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(_dot_)Janssen(_at_)student(_dot_)luc(_dot_)ac(_dot_)be> 
02/03/2005 12:45 PM
Please respond to
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com


To
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
cc

Subject
[xsl] 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>