Specifying Condional Attribute in DTD
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   akhtar_ali
Posted On:   Thursday, March 13, 2003 02:59 AM

In the example, Element is Ele1 and Attributes are Att1, Att2, Att3 .... ... ........... ....... If value of "Att1" is "Yes" then we should allow to have "Att2" and "Att3". If value of "Att1" is "No" then we should allow to have only the "Att3" How do i write DTD for this scenario. Thanks, Akhtar    More>>




In the example,

Element is Ele1 and Attributes are Att1, Att2, Att3



....


...





...........


.......




If value of "Att1" is "Yes" then we should allow to have "Att2" and "Att3".



If value of "Att1" is "No" then we should allow to have only the "Att3"



How do i write DTD for this scenario.



Thanks,


Akhtar



   <<Less

Re: Specifying Condional Attribute in DTD

Posted By:   Roseanne_Zhang  
Posted On:   Thursday, March 13, 2003 05:24 AM

As far as I know, it is impossible even using XML schema. I wish I were wrong. I'll be wait for some different answers...
About | Sitemap | Contact