This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Docbook XML - including files
- To: Robert Collins <robert dot collins at itdomain dot com dot au>
- Subject: Re: DOCBOOK-APPS: Docbook XML - including files
- From: Yann Dirson <ydirson at alcove dot fr>
- Date: Wed, 01 Aug 2001 09:58:48 +0200
- Cc: docbook-apps at lists dot oasis-open dot org
- References: <996650526.1006.3.camel@robertlinux>
On Wed, Aug 01, 2001 at 05:22:03PM +1000, Robert Collins wrote:
> This isn't a docbook-per se question..
>
> Current I have a root document that has external entity references for a
> bunch of articles:
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
> "docbookx.dtd" [
> <!ENTITY foo SYSTEM "foo.xml">
> <!ENTITY bar SYSTEM "bar.xml">
> ]>
> <book id="test_book" >
> <title>test book</title>
> &foo;
> &bar;
> </book>
>
> where foo.xml looks something like
> <article>
> ...
> </article>
>
> what I'd _like_ to do is to have foo include a set of separate files
> (say oen for each section of the article foo).
>
> However using <!ENTITY ..> in the beginning of foo.xml spits parsing
> errors... any hints on this one?
include foo as a parameter entity instead:
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"docbookx.dtd" [
<!ENTITY % foo SYSTEM "foo.xml">
<!ENTITY bar SYSTEM "bar.xml">
%foo;
]>
&bar;
--
Yann Dirson <Yann.Dirson@fr.alcove.com> http://www.alcove.com/
Free-Software Engineer Ingénieur Logiciel-Libre
Free-Software time manager Responsable du temps Informatique-Libre
------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org