W3C home > Mailing lists > Public > public-xml-testsuite@w3.org > June 2004

Re: Test xmlconf/xmltest/not-wf/sa/128.xml

From: Sandra Martinez <sandra.martinez@nist.gov>
Date: Tue, 08 Jun 2004 11:58:29 -0400
Message-Id: <5.0.0.25.2.20040608115727.038187b8@mailserver.nist.gov>
To: richard@inf.ed.ac.uk (Richard Tobin)
Cc: public-xml-testsuite@w3.org, Sandra Martinez <sandra.martinez@nist.gov>, w3c-xml-core-wg@w3.org

Thank you! I will forward this response.

Sandra At 04:18 PM 6/8/2004 +0100, Richard Tobin wrote:
> >   It looks like Graham is right. The intention of the test was to test
> > invalid CDATA syntax and in not really doing that. CDATA is not even
> > included a part o the content model description given in the
> > specification.  Can some address this issue?
>
>The test is:
>
>  <!DOCTYPE doc [
>  <!ELEMENT doc CDATA>
>  ]>
>  <doc></doc>
>
>This was allowed in SGML and declared that the element had CDATA content.
>It is a syntax error in XML.
>
>Don't confuse it with
>
>  <!ELEMENT doc (CDATA)>
>
>which would declare doc to contain an element called "CDATA".
>
>There is nothing wrong with the test, though the description doesn't
>explain the motivation to people who don't remember SGML.
>
>-- Richard

Sandra I. Martinez
National Institute of Standards and Technology
100 Bureau Drive, Stop 8970,
Gaithersburg, Md. 20899

(301) 975-3579
sandra.martinez@nist.gov
Received on Tuesday, 8 June 2004 11:58:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:22:04 GMT