Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Re: DTD Correct ?

Reply
Thread Tools

Re: DTD Correct ?

 
 
C. M. Sperberg-McQueen
Guest
Posts: n/a
 
      07-09-2003
"Matthias Kn÷chlein" <(E-Mail Removed)> writes:

> I would like to use this
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!ENTITY stdrestrictive "true">
>
> <!ELEMENT navigation (chapter*)>
> <!ATTLIST navigation
> restrictive (true | false) "&stdrestrictive;">
>
> <!ELEMENT chapter EMPTY>
> <!ATTLIST navigation
> restrictive (true | false) "&stdrestrictive;">
>
> But XMLSpy says : "Unexpected choice '&stdrestrictive;' "
> Is this a bug in XMLSpy or an incorrect DTD ?


Both SP 1.3 and rxp seem to think this DTD is OK.
Having reconsulted the spec to confirm that general
entity references are legal inside default attribute
values, I think they are right.

-C. M. Sperberg-McQueen
World Wide Web Consortium
 
Reply With Quote
 
 
 
 
Matthias Kn÷chlein
Guest
Posts: n/a
 
      07-10-2003
Thank you !!
But I found that it's not allowed in enumerations(choices) .
So this iscorrect

<!ATTLIST navigation restrictive "&stdrestrictive;">

and this not

<!ATTLIST navigation restrictive (true | false) "&stdrestrictive;">

matthias



"C. M. Sperberg-McQueen" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> "Matthias Kn÷chlein" <(E-Mail Removed)> writes:
>
> > I would like to use this
> >
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> > <!ENTITY stdrestrictive "true">
> >
> > <!ELEMENT navigation (chapter*)>
> > <!ATTLIST navigation
> > restrictive (true | false) "&stdrestrictive;">
> >
> > <!ELEMENT chapter EMPTY>
> > <!ATTLIST navigation
> > restrictive (true | false) "&stdrestrictive;">
> >
> > But XMLSpy says : "Unexpected choice '&stdrestrictive;' "
> > Is this a bug in XMLSpy or an incorrect DTD ?

>
> Both SP 1.3 and rxp seem to think this DTD is OK.
> Having reconsulted the spec to confirm that general
> entity references are legal inside default attribute
> values, I think they are right.
>
> -C. M. Sperberg-McQueen
> World Wide Web Consortium



 
Reply With Quote
 
 
 
 
C. M. Sperberg-McQueen
Guest
Posts: n/a
 
      07-12-2003
"Matthias Kn÷chlein" <(E-Mail Removed)> writes:

> Thank you !!
> But I found that it's not allowed in enumerations(choices) .
> So this iscorrect
>
> <!ATTLIST navigation restrictive "&stdrestrictive;">
>
> and this not
>
> <!ATTLIST navigation restrictive (true | false) "&stdrestrictive;">


Well, no, the first one lacks the required attribute default.

Michael
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XML file from one DTD to another DTD test Java 2 07-28-2006 08:48 PM
How to specify DTD to DTD.getDTD for DocumentParser? Ronald Fischer Java 4 03-17-2005 09:37 AM
Removing the dtd name when using print(...) on the dtd generated class Joseph Tilian Java 0 12-21-2004 02:58 PM
Including a dtd into another dtd... possible? Asfand Yar Qazi XML 1 09-19-2003 12:10 PM
To correct my program. please, check to find errors and correct me. joon Java 1 07-08-2003 06:13 AM



Advertisments