From: Taco Hoekwater <taco@elvenkind.com>
Subject: DOCTYPE specs
Date: Tue, 17 Sep 2002 08:57:02 +0200 [thread overview]
Message-ID: <20020917085702.2da3fea8.taco@elvenkind.com> (raw)
Begin forwarded message:
Date: Wed, 3 Jul 2002 10:32:05 +0200
From: "Taco Hoekwater" <taco@elvenkind.com>
To: "Simon Pepping" <spepping@scaprea.hobby.nl>
Subject: Re: Problem with expansion of entities in the internal DTD set
DOCTYPE processing has been broken for as long as i can remember ;)
I'm not quite sure how Hans wants to handle the internal subset, but
for reference: an internal doctype looks like this:
1. <!DOCTYPE
2. a word that is the top-level element, like
article
3. optional: either
PUBLIC
or
SYSTEM
3a. PUBLIC keys are an sgml quoted string (with ' or ") that gives
the external reference, optionally followed by
another quoted string that is a filesystem locator
for the DTD.
3b. SYSTEM keys are an sgml quoted string that is the
filesystem locator for the DTD
4. Next is an optional internal subset.
5. >
So, assuming Simon's example, the following are all legal
(some only in XML I think):
----
<!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN'
"file:///var/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd"
[
<!ENTITY date "2002-06-XX">
<!ENTITY revno "0.0.2">
]>
----
<!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN'
"file:///var/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd"
>
----
<!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN'
[
<!ENTITY date "2002-06-XX">
<!ENTITY revno "0.0.2">
]>
-----
<!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN'
>
----
<!DOCTYPE article SYSTEM
"file:///var/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd"
>
----
<!DOCTYPE article SYSTEM
"file:///var/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd"
[
<!ENTITY date "2002-06-XX">
<!ENTITY revno "0.0.2">
]>
----
<!DOCTYPE article
[
<!ENTITY date "2002-06-XX">
<!ENTITY revno "0.0.2">
]>
----
<!DOCTYPE article
>
-----
On Mon, 1 Jul 2002 22:40:11 +0200
"Simon Pepping" <spepping@scaprea.hobby.nl> wrote:
> - entity expansion in the internal DTD set does not work correctly:
> the first entity is not expanded, e.g.:
>
> <?xml version='1.0' encoding='ISO-8859-1'?>
> <!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN'
> "file:///var/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd"
> [
> <!ENTITY date "2002-06-XX">
> <!ENTITY revno "0.0.2">
> ...
> ]>
>
> 'date' is not expanded and appears as text surrounded by a box.
>
> - if there is at least one entity declaration in the prologue (whether
> this entity is used or not is not important!) leads to an additonal
> first page which contains ']?' in the upper left corner. The article
> itself starts at next page like normal.
>
> Simon
>
> --
> Simon Pepping
> email: spepping@scaprea.hobby.nl
--
groeten,
Taco
--
groeten,
Taco
next reply other threads:[~2002-09-17 6:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-17 6:57 Taco Hoekwater [this message]
2002-09-17 18:27 ` Simon Pepping
2002-09-17 19:54 ` Michael Wiedmann
2002-09-18 7:18 ` Taco Hoekwater
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020917085702.2da3fea8.taco@elvenkind.com \
--to=taco@elvenkind.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).