[prev in list] [next in list] [prev in thread] [next in thread]
List: fop-user
Subject: Re: How to:<fo:block-container left="<xsl:value-of select="string-length(text)"/>"
From: "J.Pietschmann" <j3322ptm () yahoo ! de>
Date: 2010-01-24 22:27:03
Message-ID: 4B5CC937.8040507 () yahoo ! de
[Download RAW message or body]
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic