Page 1 of 1
Parametric height
Posted: Fri Mar 02, 2007 11:55 am
by pedro.riky
Hi all
how i can set the height contents parametrically?
content-height="35px" ----> content-height="myParametricHeight"
Thanks in advance
Posted: Mon Mar 05, 2007 3:54 pm
by sorin_ristache
Hello,
I think you cannot do that in XSL-FO as there are no parameters or variables as in XSLT.
Regards,
Sorin
Scaling image
Posted: Thu Mar 08, 2007 12:08 pm
by pedro.riky
I found a solution
Code: Select all
<fo:external-graphic scaling="uniform">
<xsl:attribute name="content-height">
<xsl:value-of select="concat(heading/logo-height,px)"/>
</xsl:attribute>
<xsl:attribute name="content-width">
<xsl:value-of select="concat(heading/logo-width,px)"/>
</xsl:attribute>
<xsl:attribute name="src">
<xsl:value-of select="heading/logo"/>
</xsl:attribute>
</fo:external-graphic>
[/code]