OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: 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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC