id2.xml 272 B

1234567891011121314
  1. <?xml version="1.0"?>
  2. <!DOCTYPE doc [
  3. <!ELEMENT doc (src | dest)*>
  4. <!ELEMENT src EMPTY>
  5. <!ELEMENT dest EMPTY>
  6. <!ATTLIST src ref IDREF #IMPLIED>
  7. <!ATTLIST dest id ID #IMPLIED>
  8. <!ENTITY dest "<dest id='foo'/>">
  9. ]>
  10. <doc>
  11. <src ref="foo"/>
  12. &dest;
  13. <src ref="foo"/>
  14. </doc>