Parametric height

Here should go questions about transforming XML with XSLT and FOP.
pedro.riky
Posts: 16
Joined: Thu Mar 01, 2007 2:19 pm

Parametric height

Post by pedro.riky »

Hi all

how i can set the height contents parametrically?

content-height="35px" ----> content-height="myParametricHeight"


Thanks in advance
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
pedro.riky
Posts: 16
Joined: Thu Mar 01, 2007 2:19 pm

Scaling image

Post 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]
Post Reply