Bernmeister wrote:
> However, is it possible to replace the argument for an 'if' test?  

These are really XSLT questions, not FOP questions, and are better
suited for the XSL list[1].

That said, both of your questions have been pretty basic questions about
stylesheet parameters, and you would probably benefit from an
introductory text on XSLT.  Michael Kay’s book[2] is very good, as is
Ken Holman’s[3].

In general, if you want to pass an argument into your transformation,
you need an <xsl:param> in your XSLT stylesheet; that is what
transformer.setParameter() changes.  After that, the parameter is
available just as any other value is.

You are also confused about the difference between XSLT instructions and
output elements and attributes.  The curly braces are needed in literal
output attributes, because otherwise the processor will just output $foo
literally.  In an XSLT instruction, such as <xsl:if>, the values are
presumed to be XPath instructions, and $foo is interpreted.

HTH,
Chris

[1] <URL: http://www.mulberrytech.com/xsl/xsl-list/ >
[2] <URL:
http://www.amazon.com/XSLT-Programmers-Reference-2nd-Michael/dp/1861005067 >
[3] <URL: http://cranesoftwrights.com/training/index.htm >, _Practical
Transformation Using XSLT and XPath_.
-- 
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
“All I ask of living is to have no chains on me,
 And all I ask of dying is to go naturally.” — Laura Nyro
GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to