DTD - Element Hierarchy?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcfly1204
    New Member
    • Jul 2007
    • 233

    DTD - Element Hierarchy?

    Is it possible to declare an element hierarchy in a DTD? For instance, if two elements hold the same information, but one is supposed to supersede the other, can that be defined in a DTD? If not, where could that hierarchy be defined?
  • rski
    Recognized Expert Contributor
    • Dec 2006
    • 700

    #2
    Please post an example.

    Comment

    • mcfly1204
      New Member
      • Jul 2007
      • 233

      #3
      I do not see how an example would help answer this question. Is there a way to define a hierarchy of elements where if one element is populated, that information supersedes the information of another element.

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        a DTD is supposed to define the order of elements in the SGML document and their (static) properties. though you can define default values, dynamic behaviour is not the realm of DTD.

        Comment

        • mcfly1204
          New Member
          • Jul 2007
          • 233

          #5
          That is how I understood the purpose of DTDs as well. Thanks for the confirmation.

          Comment

          Working...