forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Wheller <>
Subject xi:include
Date Wed, 20 Oct 2004 09:45:07 GMT

I'm curious as to how XIncludes are expanded. Documents transformed under 
forrest keep using the xi:fallback, so I end up with a forrest page that has
FIX ME FIX ME FIX ME FIX ME FIX ME FIX ME. When I validate and transform the 
documents outside of forrest everything works.

Sample DocTypeDecl  (see Internal Subset)
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
                      "" [
<!ENTITY % globalents SYSTEM "global.ent">
<!ENTITY % xinclude SYSTEM "xinclude.mod">

Content of xinclude.mod
<!ELEMENT xi:include (xi:fallback?) >
<!ATTLIST xi:include
xmlns:xi            CDATA       #FIXED       ""
href                CDATA       #REQUIRED
parse               (xml|text)  "xml"
xpointer            CDATA       #IMPLIED
encoding            CDATA       #IMPLIED
accept              CDATA       #IMPLIED
accept-charset      CDATA       #IMPLIED
accept-language     CDATA       #IMPLIED >
<!ELEMENT xi:fallback ANY >
<!ATTLIST xi:fallback
xmlns:xi            CDATA       #FIXED "" >
<!ENTITY %    "| xi:include" >
<!ENTITY % local.preface.class    "| xi:include" >
<!ENTITY % local.part.class       "| xi:include" >
<!ENTITY % local.chapter.class    "| xi:include" >
<!ENTITY % local.divcomponent.mix "| xi:include" >
<!ENTITY % local.para.char.mix    "| xi:include" >
<!ENTITY %       "| xi:include" >
<!ENTITY % local.common.attrib    "xml:base CDATA #IMPLIED
xmlns:xi            CDATA       #FIXED       
''" >

Note: As you can see I have added ix:include to the set element.

I am using the principles of Modular Docbook for my document architecture.
My level of granularity goes as deep as "part", so 
The driver document is a "set" which XIncludes "book" documents, which 
XInclude "part" documents.

Sample of XIncludes in Docbook set document (inclusion of book).

    <xi:include href="sys-admin.xml" 
        <xi:fallback>FIX ME</xi:fallback>

Sample of XIncludes in Docbook book document (inclusion of part).

<xi:include href="elective-bind/bind.xml" 
        <xi:fallback>FIX ME</xi:fallback>

I'm using Forrest HEAD from SVN.

Any ideas are welcome.

Sean Wheller
Technical Author

View raw message