* DOCTYPE specs
@ 2002-09-17 6:57 Taco Hoekwater
2002-09-17 18:27 ` Simon Pepping
0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2002-09-17 6:57 UTC (permalink / 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DOCTYPE specs
2002-09-17 6:57 DOCTYPE specs Taco Hoekwater
@ 2002-09-17 18:27 ` Simon Pepping
2002-09-17 19:54 ` Michael Wiedmann
2002-09-18 7:18 ` Taco Hoekwater
0 siblings, 2 replies; 4+ messages in thread
From: Simon Pepping @ 2002-09-17 18:27 UTC (permalink / raw)
On Tue, Sep 17, 2002 at 08:57:02AM +0200, Taco Hoekwater wrote:
>
>
> 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
>
> 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.
In XML the second quoted string is mandatory. Therefore these two
examples are not valid XML:
> <!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'
> >
Regards, Simon
--
Simon Pepping
email: spepping@scaprea.hobby.nl
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DOCTYPE specs
2002-09-17 18:27 ` Simon Pepping
@ 2002-09-17 19:54 ` Michael Wiedmann
2002-09-18 7:18 ` Taco Hoekwater
1 sibling, 0 replies; 4+ messages in thread
From: Michael Wiedmann @ 2002-09-17 19:54 UTC (permalink / raw)
* Simon Pepping <spepping@scaprea.hobby.nl> [020917 20:27]:
...
> In XML the second quoted string is mandatory. Therefore these two
> examples are not valid XML:
>
> > <!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'
> > >
I agree with Simon and because I was the submitter of the above
examples I 'apologize' for any inconvenience these may have caused...
Michael
--
mw@miwie.in-berlin.de http://www.miwie.org
mw@miwie.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DOCTYPE specs
2002-09-17 18:27 ` Simon Pepping
2002-09-17 19:54 ` Michael Wiedmann
@ 2002-09-18 7:18 ` Taco Hoekwater
1 sibling, 0 replies; 4+ messages in thread
From: Taco Hoekwater @ 2002-09-18 7:18 UTC (permalink / raw)
The context parser doesnt make a distinction between XML and SGML,
besides this is a silly specification. What precisely is the point
of a required "system URI" if it is allowed to be empty?
On Tue, 17 Sep 2002 20:27:22 +0200, Simon wrote:
> In XML the second quoted string is mandatory. Therefore these two
> examples are not valid XML:
--
groeten,
Taco
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-09-18 7:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-17 6:57 DOCTYPE specs Taco Hoekwater
2002-09-17 18:27 ` Simon Pepping
2002-09-17 19:54 ` Michael Wiedmann
2002-09-18 7:18 ` Taco Hoekwater
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).