Can ENTITY declarations be nested in referenced XML files?
问题 I'm working on a rather large DocBook XML document. The main book has the chapters but includes all the subsections by reference using entities. Something like this: main.book.xml : <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ <!ENTITY section1 SYSTEM "../fragments/section1.xml"> <!ENTITY section2 SYSTEM "../fragments/section2.xml"> <!ENTITY section3 SYSTEM "../fragments/section3.xml"> <!ENTITY section3_a SYSTEM "..