It would be helpful to remember that it is possible today to write
DocBook documents that are completely valid before and after
XInclusions, without any modifications to the core DocBook DTD. You
just need to add an internal subset to you documents that adds
xinclude:include to the content models of those elements where you've
chosen to place an XInclude element. For example, the chapter
documents for Processing XML with Java
<http://www.ibiblio.org/xml/books/xmljava/> all begin like this:
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"docbook/docbookx.dtd" [
<!-- add XIncludes -->
<!ENTITY % local.para.char.mix " | xinclude:include">
<!ELEMENT xinclude:include EMPTY>
<!ATTLIST xinclude:include
xmlns:xinclude CDATA #FIXED "http://www.w3.org/2001/XInclude"
href CDATA #REQUIRED
parse (text | xml) "xml"
>
]>
Authors who use XIncludes in different places may need to change
different parameter entities. However, I'm pretty sure the technique
is broadly applicable.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | [EMAIL PROTECTED] | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| XML in a Nutshell, 2nd Edition (O'Reilly, 2002) |
| http://www.cafeconleche.org/books/xian2/ |
| http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Yann Dirson
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Yann Dirson
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Bob Stayton
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Daniel Veillard
- DOCBOOK-APPS: Re: XInclude doesn't validate wit... Vitaly Ostanin
- DOCBOOK-APPS: Re: XInclude doesn't validate wit... Norman Walsh
- DOCBOOK-APPS: Re: XInclude doesn't validate wit... Vitaly Ostanin
- Re: DOCBOOK-APPS: Re: XInclude doesn't validate... Paul Grosso
- DOCBOOK-APPS: Re: XInclude doesn't validate wit... Vitaly Ostanin
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Michael Smith
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Elliotte Rusty Harold
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Nicholas Atkinson
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Elliotte Rusty Harold
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Nicholas Atkinson
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Bob Stayton
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Elliotte Rusty Harold
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Bob Stayton
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Elliotte Rusty Harold
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Jean-Baptiste Quenot
- Re: DOCBOOK-APPS: XInclude doesn't validate wit... Michael Smith
- Re: DOCBOOK-APPS: XInclude doesn't validate with xml... Bob Stayton