Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to validate empty attributes using DTD

 
Pavan Tummala
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to not to allow empty attributes (attributes with no vlaues) using DTD validation?
CDATA #REQUIRED on attributes checks if the node it self is present, but not if the value of the attribute is empty.
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not according to what I see in section 3.3.2 of the XML Recommendation. I don't see where it allows you to put requirements on the contents of an attribute, other than being a fixed default value.
 
Pavan Tummala
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paul, you cleared my doubt.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic