I don't know what you want to do, but only a
correct answer.

C is not correct because your element declaration is outside
the document declaration subset.  Your DOCTYPE element has to
match your root element.  In C your root element is called
'test.dtd'.

I think what want is:

<!DOCTYPE test  SYSTEM "test.dtd" [

<!ELEMENT test (#PCDATA|elm1|elm2)* >

<!ELEMENT elm1 (#PCDATA)>
<!ELEMENT elm2 (#PCDATA)>

]>

Hope this helps.

Betty

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey, XML Consultant,        | Phone: 410-787-9200 FAX: 9830
Electronic Commerce Connection, Inc. |
[EMAIL PROTECTED]                    | Washington,DC SGML/XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/

On Wed, 19 Sep 2001, Zhong-Dan LAN wrote:

> I found the following question:
>
> 3. Which of the following code is valid?
>
> a)<!DOCTYPE test [ <!ELEMENT test (#PCDATA)>]>
> b)<!DOCTYPE test [ <!ELEMENT test.dtd (elm1|elm2|#PCDATA) >]>
> c)<!DOC
TYPE test [ <!ELEMENT test.dtd (#PCDATA|elm1|elm2)* >]>
>     <!ELEMENT elm1 (#PCDATA)>
>     <!ELEMENT elm2 (#PCDATA)>
> d)<!DOCTYPE test [ <!ELEMENT test test (#PCDATA)>]>
> e)<!DOCTYPE test [ <!ELEMENT test "test" (#PCDATA)>]>
>
> Answer is a) and c). But I think a) is the only
> correct choice, because the declaration should start from the
> root element test.
>
> Anyone can help me out?
>
> Thx.
>
> Dan
>
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>
> ------   XML/edi Group Discussion List   ------
> Homepage =  http://www.XMLedi-Group.org
>
> Unsubscribe =  send email to: [EMAIL PROTECTED]
> Leave the subject and body of the message blank
>
> Questions/requests:  [EMAIL PROTECTED]
>
> To receive only one message per day (digest format)
> send the following message to [EMAIL PROTECTED],
> (leave the subject line blank)
>
> digest xmledi-group your-email-address
>
> To join the XML/edi Group complete the form located at:
> http://www.xmledi-group.org/xmledigroup/mail1.htm
>
>

-- 




------   XML/edi Group Discussion List   ------
Homepage =  http://www.XMLedi-Group.org

Unsubscribe =  send email to: [EMAIL PROTECTED]
Leave the subject and body of the message blank

Questions/requests:  [EMAIL PROTECTED]

To receive only one message per day (digest format) 
send the following message to [EMAIL PROTECTED], 
(leave the subject line blank) 

digest xmledi-group your-email-address

To join the XML/edi Group complete the form located at:
http://www.xmledi-group.org/xmledigroup/mail1.htm


Reply via email to