wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Overrinding ATTLIST in DTD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Overrinding ATTLIST in DTD" Watch "Overrinding ATTLIST in DTD" New topic

Overrinding ATTLIST in DTD

Vivek Saxena
Ranch Hand

Joined: Apr 24, 2002
Posts: 58
I have following question/confusion with DTD.
I have an external DTD file called test.dtd.
DTD file

I have following xml file.

When I am trying to validate xml file with dtd I
am getting following error
“ This file is not valid:
Bad value for fixed attribute/element ‘lastname’ – must be ‘saxena’ “
I am using XMLSpy.
As per my understanding, we can override the “ATTLIST” and “ENTITY” with internal declaration of dtd. I may be wrong, please feel free to correct me.

Waiting for help.
[ January 27, 2003: Message edited by: Vivek Saxena ]
[ January 27, 2003: Message edited by: Vivek Saxena ]
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Try here!
Vivek Saxena
Ranch Hand

Joined: Apr 24, 2002
Posts: 58
This is a bug in XMLSpy!
Steven Broadbent
Ranch Hand

Joined: Dec 10, 2002
Posts: 400
you can look at the xml spy users forum for
bug reports...

"....bigmouth strikes again, and I've got no right to take my place with the human race...."<p>SCJP 1.4
jQuery in Action, 2nd edition
subject: Overrinding ATTLIST in DTD
Similar Threads
difference between #PCDATA and CDATA?
Multiple ATTLIST declarations for a attribute!
DTD...declaring an element which has child elements and PCDATA
Can I use an attribute default in a DTD to declare an XML namespace?