<xsl:param name="versionParam" select="'1.0'"/>
From: http://www.w3.org/TR/xslt#local-variables
NOTE:The nearest equivalent in Java to an xsl:variable element in a template is a final local variable declaration with an initializer. For example,
<xsl:variable name="x" select="'value'"/>
has similar semantics to
final Object x = "value";
XSLT does not provide an equivalent to the Java assignment operator
x = "value";
because this would make it harder to create an implementation that processes a document other than in a batch-like way, starting at the beginning and continuing through to the end.
Hope this helps!
Web Maestro Clay
On Feb 4, 2004, at 4:43 PM, Glen Mazza wrote:
Since this is FOP work-related, I guess I can be allowed to ask a very newbie XSLT question here:
I just added a parameter to one of the XSL example files (eventually to show the use of a JAXP transformer.setParam() call) as follows:
<xsl:param name="versionParam" select="1.0"/> ... ... <fo:block>Version <xsl:value-of select="$versionParam"/> ...
But it keeps outputting "Version 1" in the resultant PDF. What is the standard way of getting it to display "Version 1.0"?
Thanks, Glen
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/