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 Kai Ulrich <ul...@pnpconsult.com> on 2002/01/07 11:26:01 UTC
FOP-XSL:dynamic external graphics
Hey
I have a problem to data from xml to an xsl - atribute:
the xml file is like:
...
<page>
<homepage>
<table>
<tr>
<td>
<img_homepage>http://url/111</img_homepage>
</td>
</tr>
<tr>
<td>
<img_homepage>http://url/222</img_homepage>
</td>
</tr>
</table>
</homepage>
</page>
the xsl stylesheet:
....
<xsl:template match="img_diagramm">
<xsl:variable name = "src" >
<xsl:value-of select = "." />
</xsl:variable>
<fo:table-row>
<fo:table-cell>
<fo:block><fo:external-graphic
src="{/page/homepage/tr/td/img_homepage}"/></fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:template>
.....
The result :
The image http://url/111 is shown twice !
How can I manage it to show both pictures ?
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org