forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Palmer" <>
Subject Using XInclude
Date Sun, 08 Aug 2004 18:11:43 GMT

Does anyone know how XIncludes be made to work with Forrest?

This appears to be the only way that XMLMind (the editor I am using)  can specify references
to external files and constants, for substituting desired text for a placeholder.

There is an entry here: that says this:

Added XInclude capability to the documents. Remember to disable validations for files with
xincludes as the xinclude is not performed during validation. (NKB)

I added a new file (xi.xml) to the standard forrest seed files (in src/documentation/content/xdocs/samples/)
, with this snippet:

  <xi:include href="test.xml" xmlns:xi="" >
      If you see this, the include has failed.

I also disabled validation in Something of the xi process is working,
because I get the fallback message printed. (In addition, forrest reports an error: "X [0]
 samples/xi.pdf   BROKEN: java.lang.ClassCastException" - and no pdf is created)

I've tried a number of variations in terms of placing test.xml in different places, referring
to it with different hrefs, but no luck.

Would it be possible for somone to correct my sample, and provide a suitable test.xml file
and tell me where to put it, so I can make this example work. (I'll do a little write-up for
the documentation project in exchange!)

Also - for this example I added an entry in 

I assume this is disabling all validation. How can I disable validation selectively? 

Would it be a good idea to allow xi:include in the future?

Thanks - Charles

View raw message