You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Corneanu Dan <cd...@savatech.ro> on 2001/01/18 11:06:21 UTC
SVG-text
Hi,
I have two questions:
1. Does style="font-size:n" works with the latest FOP source(CVS) ?
2. This is an XSLT question: I want to draw a rectangle and have it's
length taken from the XML element. After the rectangle I what to put an
svg:text but with some space from the rectangle.
Like this: ************** 2.0
<fo:instream-foreign-object>
<svg:svg width="250" height="10">
<svg:g style="font-size:5; font-family:Verdana; fill:red;
stroke:#000000">
<svg:rect x="0" y="0" width="{child::text()}" height="5"/>
</svg:g>
<svg:text x="{child::text()}"
y="10"><xsl:value-ofselect="child::text()"/></svg:text>
</svg:svg>
</fo:instream-foreign-object>
How can I set the x attribute from svg:text to child::text() + 3 ?
Thanks , Dan.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org