aspose file tools
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
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply 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!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Multiple ATTLIST declarations for a attribute!
 
Similar Threads
Overrinding ATTLIST in DTD
PCDATA and CDATA
namespace
Parameter Entity problem
Can I use an attribute default in a DTD to declare an XML namespace?