This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Multiple ATTLIST declarations for a attribute! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Multiple ATTLIST declarations for a attribute!" Watch "Multiple ATTLIST declarations for a attribute!" New topic
Author

Multiple ATTLIST declarations for a attribute!

Vivek Saxena
Ranch Hand

Joined: Apr 24, 2002
Posts: 58
Hi,
As per my understanding, if I have two "ATTLIST" declarations (for same attribute) for a element then parser is supposed to ignore second one and should use first one.
But i am trying following in XMLSpy and it seems confusing.
if I include second ATTLIST in same file for same element then it takes second value.

For example:
DTD File

xml file

Above XML file is valid as per XMLSpy but i don't think so. it should take the first vale for attribute 'lastnma' and it should be "saxena".
Please help me here.
Thanks
Vivek Saxena
Ranch Hand

Joined: Apr 24, 2002
Posts: 58
This is a bug in XMLSpy!
 
GeeCON Prague 2014
 
subject: Multiple ATTLIST declarations for a attribute!