francisco zenha

Greenhorn
+ Follow
since Oct 03, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by francisco zenha

I have this:
<fo:block-container width="20cm" height="21.6cm" background-image="image2.jpg">

what i want is that it gets the image2.jpg path from a field in the XML <image2>image2.jpg</image2> because this way i can change the path and name of the photo on the XML and never have to change the XSL file.

what i�ve tried was to include in the background-image an <fo:external-graphic> like this:

<fo:external-graphic>
<xsl:attribute name="src">
<xsl:text>url(</xsl:text>
<xsl:call-template name="double-backslash">
<xsl:with-param name="text">
<xsl:value-of select="string(image1)"/>
</xsl:with-param>
<xsl:with-param name="text-length">
<xsl:value-of select="string-length(string(image1))"/>
</xsl:with-param>
</xsl:call-template>
<xsl:text>)</xsl:text>
</xsl:attribute>
</fo:external-graphic>



I�ve tried to put this inside: <fo:block-container width="20cm" height="21.6cm" background-image="url(<fo:external-graphic>...)">

But these don�t work. Any idea?

Thanks
Hi,

I need to have a background image to a table. That�s easy to do if we put the path on the url of the background image but my problem is that the path is on an XML field and i need to get it on the XSL-FO. How could i do this?

Thanks

[ October 03, 2008: Message edited by: francisco zenha ]
[ October 03, 2008: Message edited by: francisco zenha ]
Hello,

I need to set an background-image that is set in an xml. I have an xslt file that gets information from an XML and one of that information is the path to an image. Ho