DTD required elements ordering

前端 未结 4 2120
清酒与你
清酒与你 2020-12-17 16:05

I want to have list of required elements in any order defined in dtd, but have no idea how I could do this.

For example, I have following definition:



        
4条回答
  •  情深已故
    2020-12-17 16:59

    Reading the spec is would appear you can't.

    When children are declared in a sequence separated by commas, the children must appear in the same sequence in the document. In a full declaration, the children must also be declared, and the children can also have children.

    I think it's because you are declaring a sequence (or ordered list if you like) rather than a collection (or unordered list).

提交回复
热议问题