We experimented with this here at CambridgeDocs earlier in the year.
 
We found that the easiest way to use xinclude with fop was to first run the 
.xml file through an xinclude tool ( like XIncluder, which is open source java 
tool) and then submit the resultant xml (which will have the included xml files 
in it) to fop.  
 
We ended up having to modify the xinclude tool so that you could use xpath 
expressions in the xinclude and not just full .xml files, which proved to be 
quite useful / much more useful than including entire files.
 
Thanks,
Riz
 
 
----------------------------------------
Rizwan Virk
CTO
CambridgeDocs
[EMAIL PROTECTED]
personal: [EMAIL PROTECTED]
 

________________________________

From: Stimpmania [mailto:[EMAIL PROTECTED]
Sent: Wed 12/15/2004 6:19 PM
To: [EMAIL PROTECTED]
Subject: FOP and XInclude



Hello,

does anybody know if it is possible to use XInclude with FOP. Xerces supports a 
partial implementation of W3C XInclude since version 2.5. How can I use it with 
FOP?

What I want to do is something like this:

file a.xml
<bill>
  <xi:include href="b.xml" xmlns:xi="http://www.w3.org/2001/XInclude"; />
  <customer>
  .
  .
  .
  </customer
</bill

file b.xml
<supplier>
.
.
.
</supplier>

file stylesheet.xsl
<template match="bill">
  <xsl:value-of="supplier"/>
</template>

Thanks in advance
Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to