Shaki wrote:
Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:
<snip/>
2. If you have an XInclude-capable XML parser (or a SAX filter for
XInclude), you can use XInclude.
http://en.wikipedia.org/wiki/XInclude
http://www.w3.org/TR/xinclude/
<snip/>
I am using Apache FOP. My attempt with XInclude failed.
File to be included: 2.pdf
<fo:block font-size="20pt">
Address block
</fo:block>
Master file:
<fo:block>
<xi:include href="2.fo" parse="xml"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:fallback>Include Error</xi:fallback>
</xi:include>
</fo:block>
You are using relative paths in the reference. Did you try specifying a
full file URL, e.g. href="file:///c:/mydir/2.fo"
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org