142 lines
4.5 KiB
HTML
142 lines
4.5 KiB
HTML
<!-- MHonArc v2.5.0b2 -->
|
|
<!--X-Subject: another question about <!ENTITY % blah "INCLUDE"> -->
|
|
<!--X-From-R13: Ureneq Prrxznaf <treneqNyvahksebzfpengpu.bet> -->
|
|
<!--X-Date: Fri, 19 May 2000 19:31:07 -0400 (EDT) -->
|
|
<!--X-Message-Id: 20000519163904.A1400@chaser.linuxfromscratch.org -->
|
|
<!--X-Content-Type: text/plain -->
|
|
<!--X-Head-End-->
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML//EN">
|
|
<html>
|
|
<head>
|
|
<title>another question about <!ENTITY % blah "INCLUDE"></title>
|
|
<link rev="made" href="mailto:gerard@linuxfromscratch.org">
|
|
</head>
|
|
<body>
|
|
<!--X-Body-Begin-->
|
|
<!--X-User-Header-->
|
|
<!--X-User-Header-End-->
|
|
<!--X-TopPNI-->
|
|
<hr>
|
|
[<a href="msg02482.html">Date Prev</a>][<a href="msg02484.html">Date Next</a>][<a href="msg02487.html">Thread Prev</a>][<a href="msg02484.html">Thread Next</a>][<a href="maillist.html#02483">Date Index</a>][<a href="threads.html#02483">Thread Index</a>]
|
|
<!--X-TopPNI-End-->
|
|
<!--X-MsgBody-->
|
|
<!--X-Subject-Header-Begin-->
|
|
<h1>another question about <!ENTITY % blah "INCLUDE"></h1>
|
|
<hr>
|
|
<!--X-Subject-Header-End-->
|
|
<!--X-Head-of-Message-->
|
|
<ul>
|
|
<li><em>To</em>: <A HREF="mailto:ldp-discuss@lists.linuxdoc.org">ldp-discuss@lists.linuxdoc.org</A></li>
|
|
<li><em>Subject</em>: another question about <!ENTITY % blah "INCLUDE"></li>
|
|
<li><em>From</em>: Gerard Beekmans <<A HREF="mailto:gerard@linuxfromscratch.org">gerard@linuxfromscratch.org</A>></li>
|
|
<li><em>Date</em>: Fri, 19 May 2000 16:39:04 -0400</li>
|
|
<li><em>Organization</em>: Linux From Scratch</li>
|
|
<li><em>Resent-date</em>: Fri, 19 May 2000 19:31:07 -0400 (EDT)</li>
|
|
<li><em>Resent-from</em>: <A HREF="mailto:ldp-discuss@lists.debian.org">ldp-discuss@lists.debian.org</A></li>
|
|
<li><em>Resent-message-id</em>: <0LiIFC.A.toH.q6cJ5@murphy></li>
|
|
<li><em>Resent-sender</em>: <A HREF="mailto:ldp-discuss-request@lists.debian.org">ldp-discuss-request@lists.debian.org</A></li>
|
|
</ul>
|
|
<!--X-Head-of-Message-End-->
|
|
<!--X-Head-Body-Sep-Begin-->
|
|
<hr>
|
|
<!--X-Head-Body-Sep-End-->
|
|
<!--X-Body-of-Message-->
|
|
<pre>
|
|
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">
|
|
]>
|
|
|
|
<book>
|
|
&chapter1;
|
|
&chapter2;
|
|
</book>
|
|
|
|
chapter1.sgml and chapter2.sgml both include the contents.sgml file.
|
|
|
|
chapter1.sgml:
|
|
<chapter id="chapter1">
|
|
&contents
|
|
</chapter>
|
|
|
|
and chapter2.sgml:
|
|
<chapter id="chapter2">
|
|
&contents
|
|
</chapter>
|
|
|
|
contents.sgml contains:
|
|
<sect1><title>Contents</title>
|
|
<para>Blah</para>
|
|
<![%chapter2-specific;[
|
|
<para>
|
|
This is only suppose to show up in chapter2
|
|
</para>
|
|
]]>
|
|
|
|
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
|
|
chapter2.sgml
|
|
|
|
--
|
|
Gerard Beekmans
|
|
www.linuxfromscratch.org
|
|
|
|
-*- 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
|
|
|
|
</pre>
|
|
|
|
<!--X-Body-of-Message-End-->
|
|
<!--X-MsgBody-End-->
|
|
<!--X-Follow-Ups-->
|
|
<hr>
|
|
<!--X-Follow-Ups-End-->
|
|
<!--X-References-->
|
|
<!--X-References-End-->
|
|
<!--X-BotPNI-->
|
|
<ul>
|
|
<li>Prev by Date:
|
|
<strong><a href="msg02482.html">RE: Feedback</a></strong>
|
|
</li>
|
|
<li>Next by Date:
|
|
<strong><a href="msg02484.html">We can list Your Website</a></strong>
|
|
</li>
|
|
<li>Previous by thread:
|
|
<strong><a href="msg02487.html">Re: Converting HTML to DocBook</a></strong>
|
|
</li>
|
|
<li>Next by thread:
|
|
<strong><a href="msg02484.html">We can list Your Website</a></strong>
|
|
</li>
|
|
<li>Index(es):
|
|
<ul>
|
|
<li><a href="maillist.html#02483"><strong>Date</strong></a></li>
|
|
<li><a href="threads.html#02483"><strong>Thread</strong></a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
<!--X-BotPNI-End-->
|
|
<!--X-User-Footer-->
|
|
<!--X-User-Footer-End-->
|
|
</body>
|
|
</html>
|