W3C home > Mailing lists > Public > www-validator@w3.org > November 2002

Re: The beta validator

From: Ville Skyttä <ville.skytta@iki.fi>
Date: 15 Nov 2002 00:35:22 +0200
To: Nick Kew <nick@webthing.com>
Cc: Terje Bless <link@pobox.com>, W3C Validator <www-validator@w3.org>, elfin <elfin@lspace.org>
Message-Id: <1037313323.28353.74.camel@bobcat.ods.org>

On Fri, 2002-11-15 at 00:10, Nick Kew wrote:

> > I need to dig some more to find out whether this is actually a bug in
> > OpenSP.
> 
> I was thinking along similar lines.  It looks like a possible
> failure of -wxml to apply different XML rules (or have we just
> assumed XML rules don't allow bare ampersand)?
> 
> Of course, the bare ampersand is valid in SGML, which is OpenSP's
> native mode.

Hmm, the XML spec [1] is pretty clear about this:

    The ampersand character (&) and the left angle bracket (<) may
    appear in their literal form only when used as markup delimiters, or
    within a comment, a processing instruction, or a CDATA section. If
    they are needed elsewhere, they must be escaped using either numeric
    character references or the strings "&amp;" and "&lt;" respectively.

...and the XHTML 1.0 (Strict) DTD contains these (unrelated stuff
snipped):

    <!ELEMENT pre %pre.content;>
    <!ENTITY % pre.content "(#PCDATA | ...">

Does #PCDATA (mean|imply) "CDATA section"?

[1] <http://www.w3.org/TR/REC-xml#syntax>

-- 
\/ille Skyttä
ville.skytta at iki.fi
Received on Thursday, 14 November 2002 17:36:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:04 GMT