This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] xincludes with Xerces 2.6.2
- From: "Claus Rasmussen" <cra at web500 dot com>
- To: <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 29 Mar 2004 15:14:14 +0200
- Subject: RE: [docbook-apps] xincludes with Xerces 2.6.2
Sorry for not posting the error message - here goes:
"Error reported by XML parser: Elements from namespace
'http://www.w3.org/2003/XInclude', other than 'fallback', are not
allowed to be children of 'include' elements. However, 'include' was
found."
I'll see if I can get around to testing with xmllint.
/claus
:: -----Original Message-----
:: From: Bob Stayton [mailto:bobs@sagehill.net]
:: Sent: 26. marts 2004 18:37
:: To: Claus Rasmussen; docbook-apps@lists.oasis-open.org
:: Subject: Re: [docbook-apps] xincludes with Xerces 2.6.2
::
:: When you say it doesn't work, what exactly happens? Is there an error
:: message? Does it fail completely?
::
:: You might try processing the file with xmllint --xinclude if you have
:: access
:: to the libxml2 toolkit. That would tell you if it is a bug in the
Xerces
:: XInclude processor.
::
:: Bob Stayton
:: Sagehill Enterprises
:: DocBook Consulting
:: bobs@sagehill.net
::
::
:: ----- Original Message -----
:: From: "Claus Rasmussen" <cra@web500.com>
:: To: <docbook-apps@lists.oasis-open.org>
:: Sent: Friday, March 26, 2004 1:42 AM
:: Subject: RE: [docbook-apps] xincludes with Xerces 2.6.2
::
::
:: After being happy for a while, another related anomaly occurred:
::
:: I using xincludes in a docbook xml "article". I'm including
"section"s,
:: which in turn all include some raw text snippets (code listings). The
:: following works like a charm:
::
:: <article>
::
:: [..content..]
::
:: <section>
:: [..content..]
:: [..xinclude goes here..]
:: </section>
::
:: </article>
::
:: However, if there has been another xinclude before, I can not nest
the
:: xinclude in a section. So this doesn't work:
::
:: <article>
::
:: [..content..]
::
:: [..xinclude A goes here..]
::
:: <section>
:: [..content..]
:: [..xinclude B goes here..]
:: </section>
::
:: </article>
::
:: Whereas these two both work fine:
::
:: <article>
::
:: [..content..]
::
:: <section>
:: [..content..]
:: [..xinclude B goes here..]
:: </section>
::
:: </article>
::
:: <article>
::
:: [..content..]
::
:: [..xinclude A goes here..]
::
:: [..content..]
:: [..xinclude B goes here..]
::
:: </article>
::
:: Anyone experienced anything like this?
::
:: /claus
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.