Hi Simon,
i guess you want to pass a parameter to your stylesheet from your Class called
by your JSP, right?
If that is what you want, try to add a <parameters>-element to your XML input,
that includes the parameters for your stylesheet, maybe:
<parameters>
<parameter name="A">YOUR VALUE</parameter>
</parameters>
<your original xml ... />
Then add the following to your stylesheet:
<xsl:variable name="parameterA" select="/parameters/[EMAIL PROTECTED]'A']"/>
Now you can use your variable with $parameterA or <xsl:value-of
select="$parameterA" />
To do this, your Bean has to create the <parameters>-element depending on the
given parameters and insert it (temporarily) into the original XML (i.e. by
hanging it under the root element [see "importNode"]).
Of course you have to parse it to a DOM before.
Hope this works for you.
Greetings, Stefan
>Hi All,
>
>I have a HTML form from which I want to enable the users to select from a drop
>down list. I then want to pass the values >into a JSP page. The JSP will call
>a bean to do the transformation of some XML using a stylesheet to select the
>required >information.
>
>I can call the required classes using JSP tags and that returns information
>requested. The parameters in the XSL are >currently hard coded. I want to know
>is it possible to pass the values into the transformation from the Java code
>calling >the XSL/XML.
>
>
>Regards
>
>Simon