xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] TagSoup, malformed comments and XOM
- From: "Steve Loughran" <steve.loughran AT gmail.com>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] TagSoup, malformed comments and XOM
- Date: Thu, 29 Jun 2006 16:00:54 +0100
On 29/06/06, John Cowan <cowan AT ccil.org> wrote:
Steve Loughran scripsit:
> Arguably: its a design-defect in XML that propagates down the food chain
> http://issues.us.apache.org/bugzilla/show_bug.cgi?id=17262
In XML's early days, it mattered very much that it be 100%
SGML-compatible, so that existing SGML tools could parse it properly.
It still matters, although now some of the adjustment has been on the
SGML side.
Anyway, in SGML a comment could appear inside any declaration and had "--"
at the start and the end of it. So this was a legal DOCTYPE declaration:
<!DOCTYPE html -- HyperText Markup Language -- SYSTEM "html.dtd">
An empty declaration like "<!>" was also legal. So from the SGML
viewpoint, an XML comment is an SGML empty declaration with a single
SGML comment in it. Obviously, a comment that's terminated by "--"
can't contain any occurrences of "--". So there you go.
That kind of makes sense in a silly way. Many of the long standing
faults in today's technology were made an incremental step at a
time...
-
[XOM-interest] TagSoup, malformed comments and XOM,
Bart Schuller, 06/27/2006
-
Re: [XOM-interest] TagSoup, malformed comments and XOM,
Wolfgang Hoschek, 06/27/2006
- Re: [XOM-interest] TagSoup, malformed comments and XOM, John Cowan, 06/30/2006
-
Re: [XOM-interest] TagSoup, malformed comments and XOM,
John Cowan, 06/27/2006
-
Re: [XOM-interest] TagSoup, malformed comments and XOM,
Steve Loughran, 06/29/2006
-
Re: [XOM-interest] TagSoup, malformed comments and XOM,
John Cowan, 06/29/2006
- Re: [XOM-interest] TagSoup, malformed comments and XOM, Steve Loughran, 06/29/2006
-
Re: [XOM-interest] TagSoup, malformed comments and XOM,
John Cowan, 06/29/2006
-
Re: [XOM-interest] TagSoup, malformed comments and XOM,
Steve Loughran, 06/29/2006
-
Re: [XOM-interest] TagSoup, malformed comments and XOM,
Wolfgang Hoschek, 06/27/2006
Archive powered by MHonArc 2.6.24.