Subject: RE: [xsl] with-param problem From: "Jaime Stuardo" <jstuardo@xxxxxxxxxxx> Date: Thu, 3 Feb 2005 15:57:06 -0400 |
Where is $p1 defined? it must be defined before <xsl:call-template> as a variable. By using <xsl:with-param> you are just indicating the you are passing that value to the parameters in f template, not declaring it. -----Mensaje original----- De: Wim Janssen [mailto:Wim.Janssen@xxxxxxxxxxxxxxxxx] Enviado el: Jueves, 03 de Febrero de 2005 14:46 Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Asunto: [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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] with-param problem, Michael Kay | Thread | RE: [xsl] with-param problem, Pieter Reint Siegers |
Re: [xsl] unparsed general entity i, Colin Paul Adams | Date | Re: [xsl] position(), Alan Gutierrez |
Month |