jantje wrote:
>
> Hi there, I use Apache Fop to generate PDF from the file text.xml
>
> In this file there is text, but also this element:
> <includeXmlFile>
> <path>source/xml/</path>
> <file>file.xml</file>
> </includeXmlFile>
> Try:
>
> <xsl:template match="includeXmlFile">
> <xsl:variable name="source">
> <xsl:value-of select="string('../../../')"/>
> <xsl:value-of select="path"/>
> <xsl:value-of select="file"/>
> </xsl:variable>
> <xsl:for-each select="document($source)">
> <xsl:copy>
> <xsl:copy-of select="@*"/>
> <xsl:apply-templates/>
> </xsl:copy>
> </xsl:for-each>
> </xsl:template>
>
> Regards,
>
> Bones
>
>
> So, in PDF I want to show the complete content from file.xml, so also the
> elements and attributes.
>
> I use this, in xsl, to generate a .fo -file:
> <xsl:template match="includeXmlFile">
> <xsl:variable name="source">
> <xsl:value-of select="string('../../../')"/>
> <xsl:value-of select="path"/>
> <xsl:value-of select="file"/>
> </xsl:variable>
> <xsl:for-each select="document($source)">
> <xsl:copy><xsl:apply-templates select="node()|@*"/></xsl:copy>
> </xsl:for-each>
> </xsl:template>
>
> But this does not seem to work. ($source is ok, so only the copy part does
> not work)
>
> Anyone an idea? Thanks..
>
--
View this message in context:
http://www.nabble.com/Include-a-complete-file-in-FOP-tp18016418p18076215.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]