Subject: Re: [xsl] unable to pass parameters from jsp From: "J.Pietschmann" <j3322ptm@xxxxxxxx> Date: Mon, 01 Apr 2002 13:14:15 +0200 |
...I am still doing my beginers in xml. I am trying to pass a parameter from a jsp page which can be accessed from my style sheet.
<?xml version="1.0"?> <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/"> <xsl:param name="firstParam"/>
You declared a parameter for the template matching "/". A stylesheet parameter is a child element of the stylesheet element. Try this: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:param name="firstParam"/> <xsl:template match="/"> <xsl:value-of select="firstParam"/> <xsl:apply-templates/> </xsl:template> </xsl:stylesheet>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] unable to pass parameters fro, Aseef Jamaluddin | Thread | RE: [xsl] unable to pass parameters, Michael Kay |
[xsl] unable to pass parameters fro, Aseef Jamaluddin | Date | [xsl] transforming a file with Saxo, Eric K Taylor |
Month |