J.Pietschmann/anyone, can you point me to an example
I already have ticks around the value
I am using
<xsl:with-param name="col_alignment" select="'left'"/>
but in the template definition, i use
<xsl:template name="ROW_HEADER">
<xsl:param name="col_alignment"/>
<fo:block font-weight="bold" text-align="$col_alignment">
</fo:block>
...
I get
[ERROR] Unknown enumerated value for property 'text-align': $col3a
[ERROR] Error in text-align property value '$col3a':
org.apache.fop.fo.expr.PropertyException: illegal character
maybe its not possible to use the param as an attribute to a tag?
-----Original Message-----
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Friday, August 06, 2004 4:27 PM
To: [EMAIL PROTECTED]
Subject: Re: how to pass param to template that will be used as an tag
attribu te
[EMAIL PROTECTED] wrote:
> hi all, how can I call a template passing in a value that will be used
> as an attribute to a tag in that template, for example, something like
I'm not sure what your problem is, probably:
> <xsl:with-param name="col_alignment" select="left"/>
^^^^^
This selects an element. I suspect you meant to use
<xsl:with-param name="col_alignment" select="'left'"/>
BTW col_alignment is an ugly identifier, for multiple reasons.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]