On 24.01.2010 23:09, Magdikova wrote:
yes, thank you, but how can I set measurments? like cm or pixel?
Either add to the attribute value as text:
<fo:block-container>
<xsl:attribute name="left"><xsl:value-of
select="string-length(text)"/>mm</xsl:attribute>
^^
or (easier to read)
<fo:block-container>
<xsl:attribute name="left">
<xsl:value-of select="string-length(text)"/>
<xsl:text>mm</xsl:text>
</xsl:attribute>
or use an attribute value template (the braces below)
<fo:block-container left="{string-length(text)}mm">
In case of further question regarding XSLT, check the
XSL FAQ first (and perhaps take a look into Michael Kay's
book)
http://www.dpawson.co.uk/xsl/
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]