Hello Michiel,
> 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>
Yes, i use Ant1.7 and Java1.6 so this should work for me. On the downside i
have to say that i use Ant for the first time and that i took my build.xml from
the tutorial. I adapted a few parameters to my case but i don't know yet how to
write a new task. This is the part of the build.xml responsible for compiling
the sources so far:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<path id="xalan.classpath">
<fileset dir="${xalan.lib.dir}" id="xalan.fileset">
<include name="xalan.jar" />
<include name="xercesImpl.jar" />
</fileset>
</path>
<target name="html_depends">
<mkdir dir="${out-html.dir}" />
</target>
<target name="build-html" depends="html_depends"
description="Generates HTML files from DocBook XML">
<xslt style="${html.stylesheet}" extension=".html"
basedir="${source.dir}" destdir="${out-html.dir}">
<classpath refid="xalan.classpath" />
<include name="book.xml" />
</xslt>
</target>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
So what do i have to change to include your xslt-task?
/Stephan
-------- Original-Nachricht --------
> Datum: Thu, 28 Aug 2008 15:49:16 +0200
> Von: Michiel Hendriks <[EMAIL PROTECTED]>
> An: [email protected]
> Betreff: Re: [docbook-apps] xinclude problem with docbook under eclipse
> On Thu, Aug 28, 2008 at 06:08:24AM -0700, Stephan Schröder 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 [EMAIL PROTECTED]
> http://elmuerte.com
> BibTeX to Docbook 5 http://sf.net/projects/bib2db5
> xslthl 2.x http://sf.net/projects/xslthl
>
> ---------------------------------------------------------------------
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]