On Friday, July 20, Thieler Jens wrote:
I suppose this question to be OT even in fop-user.
Anyhow, study the appended code
and above all study some XSLT tutorials.
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<fo:root>
<xsl:apply-templates />
</fo:root>
</xsl:template>
<xsl:template match="//PICTURE">
<fo:block>
<fo:external-graphic>
<xsl:attribute name="src">
<xsl:text>file:</xsl:text>
<xsl:value-of select="@source" />
</xsl:attribute>
</fo:external-graphic>
</fo:block>
</xsl:template>
<xsl:template match="//PUNCTURE">
<xsl:variable name="source">
<xsl:value-of select="@source" />
</xsl:variable>
<fo:block>
<fo:external-graphic src="file:{$source}" />
</fo:block>
</xsl:template>
</xsl:stylesheet>
-----Original Message-----
From: Darrel Riekhof [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 2 August 2001 12:01
To: '[EMAIL PROTECTED]'
Subject: images, xsl:fo rookie question
I can't figure out how to pull a url to an image from my xml file into the
.fo file via xsl. In my xml file, I have a tag like this:
<logoURL>http://blah/images/blah.jpg</logoURL>
The .fo examples show inserting an image like this:
<fo:external-graphic src="http://blah/images/blah.gif"/>
How do I get an xsl command like this to execute inside the quotes of the
src attrib to pull the url from the xml file?
<xsl:value-of select="logoURL"/>
Darrel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]