Re: ATR and test file DTD

Wendy,

Thanks for the good start. Very close but there are a few changes that are
needed. Here's what I think it should be:

<!ELEMENT aert-test (suggested-message, comment*, evaluation, content) >
<!ELEMENT suggested-message (#PCDATA) >
<!ELEMENT comment (#PCDATA) >
<!ELEMENT evaluation (#PCDATA) >
<!ATTLIST evaluation
         id  CDATA #REQUIRED
         triggered  (yes | no) #REQUIRED >
<!ELEMENT content (#PCDATA) >

I changed:
- "suggested_message" to "suggested-message"
- all elements are required only once except for "comment" which is optional
- removed the CDATA from the "evaluation triggered" attribute list

This now validates using the Microsoft XML validator in IE.

This DOCTYPE declaration needs to be added to all the test files:
<!DOCTYPE aert-test SYSTEM "AertTestfile.dtd">

I'll modify the test files to include the DOCTYPE if this looks OK.

Josh - Does this look OK to you?

Chris


----- Original Message -----
From: "Wendy A Chisholm" <wendy@w3.org>
To: <w3c-wai-er-ig@w3.org>; <chris.ridpath@utoronto.ca>
Sent: Monday, October 15, 2001 9:07 PM
Subject: ATR and test file DTD


> Looking at a few files, it looks like the basic DTD is as follows. Is this
> correct, Chris?
>
> <!ELEMENT aert-test (suggested_message+, comment+, evaluation+, content+)
>
> <!ELEMENT suggested_message (#PCDATA) >
> <!ELEMENT comment (#PCDATA) >
> <!ELEMENT evaluation >
> <!ATTLIST evaluation
>          id  CDATA #REQUIRED
>          triggered CDATA (yes | no) #REQUIRED
> <!ELEMENT content (#PCDATA)>
>
> example 1:
> <?xml version="1.0" encoding="iso-8859-1" ?>
> - <aert-test>
> <suggested_message>Applet has ALT text but not alternate
> content.</suggested_message>
> <comment />
> <evaluation id="aert1.0/1.1.4" triggered="no" />
> - <content>
> - <![CDATA[
> <applet code="applet.class" alt="this applet doesn't do
anything"></applet>
> ]]>
> </content>
>
> example 2:
> <?xml version="1.0" encoding="iso-8859-1" ?>
> - <aert-test>
> <suggested_message>Missing FRAME title.</suggested_message>
> <comment>FRAME title is invalid (NULL).</comment>
> <evaluation id="aert1.0/12.1.1" triggered="yes" />
> - <content>
> - <![CDATA[
> <frame title=""></frame>
> ]]>
> </content>
> </aert-test>
>
> --
> wendy a chisholm
> world wide web consortium
> web accessibility initiative
> seattle, wa usa
> /--
>

Received on Tuesday, 16 October 2001 10:29:00 UTC