You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by no...@courrier.uqam.ca on 2002/05/14 23:44:36 UTC
pb with
Hello,
I want to call a stylesheet with a parameter.
nb :XSLWithParam => XSLTServletWithParams.java
For example, i do on the http-line :
http://localhost/servlet/xalan.XSLWithParam?
URL=http://localhost/liste.xml&xslURL=http://localhost/liste.xsl
nomBase=foo
And ma file.xsl contains :
<xsl:stylesheet>
<xsl:param name="nomBase" />//recup the variable
<xsl:template match="/">
<HTML>
<BODY>
<h1>nomBase:<xsl:value-of select = "$nomBase" /></h1>//print value
</HTML>
</BODY>
</xsl:template>
</xsl:stylesheet>
But the result is "nomBase:" no print the value, or the result will
be "nomBase: Etudiant"
I've tested with Saxon and it work. There is a problem with xalan ?
Thank you
Djibi