i would like to know is how can i tell xsl that i want an image whose name is in a xml tag? For example:
in the xml.......
<img>
<name>nameOfImage.jpg</name>
</img>...
in the xsl.......
<fo:block>
<fo:external-graphic src="(here should go the name of the image above"/>
</fo:block>...

You could do something like:

<xsl:template match="img">
    <fo:block>
        <fo:external-graphic>
            <xsl:attribute name="src">
                <xsl:value-of select="./name"/>
            </xsl:attribute>
        </fo:external-graphic>
    </fo:block>
</xsl:template>


Ralf



Reply via email to