This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Docbook XML - including files


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]