[DTD] default attribute not inserted
Posted: Wed May 05, 2004 6:22 pm
Hi, first post, search didn't yield anything.
I have a DTD which defines an attribute "Type" which can have two different values, one of them being the default value (see code snippet).
I would have expected [1] that when I insert the Intervention element that the Type attribute is automatically inserted as well, and has the value "CensoredTime". Am I wrong?
If this is not possbile using a DTD, could this be solved by using Relax NG?
Thanks,
Jakob.
[1] http://www.w3.org/TR/2000/REC-xml-20001006#attdecls
PS: Oh, we bought two licenses today. Thanks for a great product!
I have a DTD which defines an attribute "Type" which can have two different values, one of them being the default value (see code snippet).
Code: Select all
<!ATTLIST Intervention
Type (FailureTime|CensoredTime) "CensoredTime"
>
If this is not possbile using a DTD, could this be solved by using Relax NG?
Thanks,
Jakob.
[1] http://www.w3.org/TR/2000/REC-xml-20001006#attdecls
PS: Oh, we bought two licenses today. Thanks for a great product!