Hi,
it depends on xercesImpl.jar. People should make sure
that they use xercesImpl-2.6.0
Here the files I use:
book.xml:
V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
[
%xinclude;
]>
<book>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="intro.xml" />
</book>
intro.xml:
V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<chapter id="intro">
<para>Blah Blah Blah</para>
</chapter>
xinclude.mod:
xmlns:xi CDATA #FIXED
"http://www.w3.org/2001/XInclude"
href CDATA #REQUIRED
parse (xml|text) "xml"
encoding CDATA #IMPLIED >
xmlns:xi CDATA #FIXED
"http://www.w3.org/2001/XInclude" >
Thanks,
Darya
--- Bob Stayton <
bobs@sagehill.net> schrieb:
> That's very odd. If the para is still a child of
> book, then the file is
> invalid and it should have reported it as so.
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
>
bobs@sagehill.net>
>
> ----- Original Message -----
> From: "Darya Said-Akbari" <
darya_akbari@yahoo.com>
> To: <
docbook-apps@lists.oasis-open.org>
> Sent: Monday, September 18, 2006 7:27 AM
> Subject: RE: [docbook-apps] Running DocBook XSL's
> XInclude with Saxon and
> FOP throws error
>
>
> > Following explanation at
> >
>
http://www.sagehill.net/docbookxsl/ValidXinclude.html#XincludeDTD> > also does not help :(
> >
> > The difference with a extra xinclude.mod and a
> > internal DTD however is, that Altova's validator
> > throws NO exception.
> >
> > But running Saxon and FOP show same behavior as
> > before.
> >
> > Regards,
> > Darya
> >
> > --- Darya Said-Akbari <
darya_akbari@yahoo.com>
> > schrieb:
> >
> >> I'm using Altova's built-in validator where it
> says
> >> that the <para> element in book.xml is NOT
> allowed
> >> at
> >> this line.
> >>
> >> Another validating assertion is that the
> >> <xi:include>
> >> element is NOT allowed at its position in
> book.xml
> >>
> >> It seems that the example is really missing
> >> something?
> >>
> >> Any hints are welcome.
> >>
> >> Regards,
> >> Darya
> >>
> >> --- Darya Said-Akbari <
darya_akbari@yahoo.com>
> >> schrieb:
> >>
> >> > Hi,
> >> >
> >> > has anybody tried Bob Stayton's XInclude
> example
> >> at
> >> >
> >>
> >
>
http://www.sagehill.net/docbookxsl/ModularDoc.html#UsingXinclude> >> > ?
> >> >
> >> > Chapter file intro.xml:
> >> >
> >> > > >> XML
> >> > V4.4//EN"
> >> >
> >> >
> >>
> >
>
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
> >> >
> >> > <chapter id="intro">
> >> >
> >> >
> >> > ...
> >> > </chapter>
> >> >
> >> > Book file:
> >> >
> >> > > XML
> >> > V4.4//EN"
> >> >
> >> >
> >>
> >
>
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
> >> >
> >> > <book>
> >> >
> >> > <para>This guide shows you how to use the
> >> > software.</para>
> >> > <xi:include
> >> > xmlns:xi="http://www.w3.org/2001/XInclude"
> >> > href="intro.xml" />
> >> > ...
> >> > </book>
> >> >
> >> > When I try to run this example I get following
> >> > exception from Saxon:
> >> >
> >> > Recoverable error
> >> > org.xml.sax.SAXParseException: At least one
> >> > 'include'
> >> > or 'fallback' element in the document is bound
> to
> >> > the
> >> > old ''http://www.w3.org/2001/XInclude''
> namespace.
> >> > This namespace is no longer processed. The
> >> namespace
> >> > ''http://www.w3.org/2003/XInclude'' must be
> used
> >> for
> >> > XInclude processing.
> >> >
> >> > The process however runs through and looks
> fine.
> >> But
> >> > when I run the resulting FO file with FOP
> 0.20.5 I
> >> > get
> >> > the following error:
> >> >
> >> > [ERROR]
> >> file:/E:/projekte/docbookxsl/book.fo:1:20845
> >> > fo:flow must contain block-level children
> >> >
> >> > Are above XML snippets for intro.xml and
> book.xml
> >> > missing anything?
> >> >
> >> > Regards,
> >> > Darya
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> >
>
___________________________________________________________
> >> >
> >> > Der frühe Vogel fängt den Wurm. Hier gelangen
> Sie
> >> > zum neuen Yahoo! Mail: http://mail.yahoo.de
> >> >
> >> >
> >>
> >
>
---------------------------------------------------------------------
> >> > To unsubscribe, e-mail:
> >> > docbook-apps-unsubscribe@lists.oasis-open.org
> >> > For additional commands, e-mail:
> >> > docbook-apps-help@lists.oasis-open.org
> >> >
> >> >
> >>
> >>
> >>
> >>
> >>
> >
>
___________________________________________________________
> >>
> >> Telefonate ohne weitere Kosten vom PC zum PC:
> >> http://messenger.yahoo.de
> >>
> >>
> >
>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> >> docbook-apps-unsubscribe@lists.oasis-open.org
> >> For additional commands, e-mail:
> >> docbook-apps-help@lists.oasis-open.org
> >>
> >>
> >
> >
> >
> >
> >
> >
> >
> >
>
___________________________________________________________
> > Der frühe Vogel fängt den Wurm. Hier gelangen Sie
> zum neuen Yahoo! Mail:
>
=== message truncated ===
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de