7.9 Conditional Sections
<![ IGNORE [ declarations ]]>
<![ INCLUDE [ declarations ]]>
- Enables parse-time customization and DTD modularization (e.g., choose
desirable sections from a large DTD).
<?xml version="1.0" ?>
<!DOCTYPE doc SYSTEM "import.dtd"
[
<!ENTITY % article "INCLUDE">
<!ENTITY % book "IGNORE">
]>
<doc/>
<!-- import.dtd -->
<![%article;[
<!ELEMENT doc (section | subsection)* >
]]>
<![%book;[
<!ELEMENT doc (chapter | section | subsection)* >
<!ELEMENT chapter (#PCDATA | section | subsection)* >
]]>
<!ELEMENT section (#PCDATA | subsection)* >
<!ELEMENT subsection (#PCDATA) >
|