[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

another question about <!ENTITY % blah "INCLUDE">

Imagine a simple book with book.sgml as the main file:

<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
<!ENTITY chapter1 SYSTEM "chapter1.sgml">
<!ENTITY chapter2 SYSTEM "chapter2.sgml">
<!ENTITY contents SYSTEM "contents.sgml">
<!ENTITY % chapter2-specific "IGNORE">


chapter1.sgml and chapter2.sgml both include the contents.sgml file.

<chapter id="chapter1">

and chapter2.sgml:
<chapter id="chapter2">

contents.sgml contains:
This is only suppose to show up in chapter2

The question is, how do I enable that chapter2-specific part? If I
change the "IGNORE" part into "INCLUDE" in the main book.sgml file, that
second paragraph will show up in both chapters. I tried including this
in chapter2.sgml:
<!ENTITY % chapter2-specific "INCLUDE">

but that generates in this error:

jade:chapter2.sgml:1:2:E: "ENTITY" declaration not
allowed in instance

Is there some other way I can do it? Have I overlooked something or
should I just create a file c2-specific.sgml and have that included in

Gerard Beekmans

-*- If Linux doens't have the solution, you have the wrong problem -*-

To UNSUBSCRIBE, email to ldp-discuss-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org