Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple ATTLIST declarations for a attribute!

 
Vivek Saxena
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a bug in XMLSpy!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic