[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Docbook XML - including files
> From: Yann Dirson <ydirson@alcove.fr> > > 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; Could you clarify this solution a bit? 8^) If foo.xml is as Robert describes, then I think this will fail. That is, if foo.xml contains <!ENTITY> declarations for individual section files, as well as references to those entities (as Robert said he was trying to do), then this example puts the section content into the DTD (above the closing ]> in the example). I don't think that is what you intended. I think you mean to separate the <!ENTITY> declarations for the sections into foo.xml, and the references to those entities in bar.xml, no? bobs Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 Caldera International, Inc. fax: (831) 429-1887 email: bobs@caldera.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC