Re: [docbook-apps] xinclude problem with docbook under eclipse

From
[ichiel Iendriks
Date
2008-08-28T13:49:20+00:00
ID
Thread
Re: [docbook-apps] xinclude problem with docbook under eclipse
On Thu, Aug 28, 2008 at 06:08:24AM -0700, Stephan Schr鐰er wrote:
> 2) main problem: the include doesn't work, instead of the file 
> "<xi:include></xi:include> "
> is included. I get this warning:
> "[xslt] ...\docbook-xsl-1.74.0\html\docbook.xsl:89:16: Warning! Element
> include in namespace 'http://www.w3.org/2001/XInclude' encountered in book,
> but no template matches."

You have to enable XInclude processing for the XML parser. If you use
ant 1.7 (and a more recent JRE which includes the javascript engine) you
can easily enable that using the following task before using the xslt
task:

<script language="javascript">
<![CDATA[
	importClass(java.lang.System);
	System.setProperty("org.apache.xerces.xni.parser.XMLParserConfiguration", 
		"org.apache.xerces.parsers.XIncludeParserConfiguration");
]]>
</script>

-- 
Michiel "elmuerte" Hendriks             
                                              http://elmuerte.com
BibTeX to Docbook 5                http://sf.net/projects/bib2db5
xslthl 2.x                          http://sf.net/projects/xslthl