old-www/pub/Linux/docs/ldp-archived/mail_archives/ldp-discuss/msg02483.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 &#45;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 &lt;!ENTITY % blah &quot;INCLUDE&quot;&gt;</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 &lt;!ENTITY % blah &quot;INCLUDE&quot;&gt;</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 &lt;!ENTITY % blah &quot;INCLUDE&quot;&gt;</li>
<li><em>From</em>: Gerard Beekmans &lt;<A HREF="mailto:gerard@linuxfromscratch.org">gerard@linuxfromscratch.org</A>&gt;</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>: &lt;0LiIFC.A.toH.q6cJ5@murphy&gt;</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:
&lt;!DOCTYPE book PUBLIC &quot;-//OASIS//DTD DocBook V3.1//EN&quot; [
&lt;!ENTITY chapter1 SYSTEM &quot;chapter1.sgml&quot;&gt;
&lt;!ENTITY chapter2 SYSTEM &quot;chapter2.sgml&quot;&gt;
&lt;!ENTITY contents SYSTEM &quot;contents.sgml&quot;&gt;
&lt;!ENTITY % chapter2-specific &quot;IGNORE&quot;&gt;
]&gt;
&lt;book&gt;
&amp;chapter1;
&amp;chapter2;
&lt;/book&gt;
chapter1.sgml and chapter2.sgml both include the contents.sgml file.
chapter1.sgml:
&lt;chapter id=&quot;chapter1&quot;&gt;
&amp;contents
&lt;/chapter&gt;
and chapter2.sgml:
&lt;chapter id=&quot;chapter2&quot;&gt;
&amp;contents
&lt;/chapter&gt;
contents.sgml contains:
&lt;sect1&gt;&lt;title&gt;Contents&lt;/title&gt;
&lt;para&gt;Blah&lt;/para&gt;
&lt;![%chapter2-specific;[
&lt;para&gt;
This is only suppose to show up in chapter2
&lt;/para&gt;
]]&gt;
The question is, how do I enable that chapter2-specific part? If I
change the &quot;IGNORE&quot; part into &quot;INCLUDE&quot; in the main book.sgml file, that
second paragraph will show up in both chapters. I tried including this
in chapter2.sgml:
&lt;!ENTITY % chapter2-specific &quot;INCLUDE&quot;&gt;
but that generates in this error:
jade:chapter2.sgml:1:2:E: &quot;ENTITY&quot; 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 &quot;unsubscribe&quot;. 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>