• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to validate empty attributes using DTD  RSS feed

 
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: 22509
43
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!