/bundles/plugins-trunk/XML/test_data/compound_documents/root.xml
XML | 36 lines | 24 code | 0 blank | 12 comment | 0 complexity | 2905424f7c3f69c90c42699890b4f79f MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- - this is the root of a compound document, similar to
- user-guide.xml.
- - fragment1.xml and fragment2.xml are included via external entities
- - they both refer to this file as the root, so when parsing them,
- it's this document which is parsed and all irrelevant elements are ignored
- - IDs are collected across all fragments, for easy composition of xlinks
- -->
- <!DOCTYPE book [
- <!ENTITY frag1 SYSTEM "fragment1.xml">
- <!ENTITY frag2 SYSTEM "fragment2.xml">
- <!ENTITY frags SYSTEM "absent.xml">
- <!ELEMENT book (chapter*,para*)>
- <!ATTLIST book
- xml:id ID #IMPLIED
- >
- <!ELEMENT chapter (title,section*)>
- <!ATTLIST chapter
- xml:id ID #IMPLIED
- >
- <!ELEMENT title (#PCDATA)>
- <!ELEMENT section (title)>
- <!ATTLIST section
- xml:id ID #IMPLIED
- >
- ]>
- <book xml:id="root">
- &frag1;
- <!-- for instance,
- "XML Insert" dockable shows all the IDs of the fragments here
- -->
- &frag2;
- <!-- GOOD: the error is reported here, even when parsing sub-documents. -->
- &frags;
- </book>