OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: Including Fragments of other DocBook Documents


At 11:41 2002 06 19 +0100, Sagar.Shah@ubsw.com wrote:
>I would like to be able to include fragments of other docbook documents in the document i'm writing. (to save maintaining information in two places etc. etc.).


>So far i've managed to use Xinlcude and do things along the lines of:
>
>-----
><?xml version="1.0"?>
><!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "docbookx.dtd" [
><!ELEMENT xi:include (xi:fallback)>
>                  <!ATTLIST xi:include
>                      xmlns:xi  CDATA #FIXED "http://www.w3.org/2001/XInclude";         
>                      href       CDATA                                   #REQUIRED
>                      parse      (xml|text)                              "xml"
>                      encoding   CDATA                                   #IMPLIED
>                  >
><!ELEMENT xi:fallback ANY>
>                  <!ATTLIST xi:fallback
>                      xmlns:xi   CDATA #FIXED   "http://www.w3.org/2001/XInclude";
>                  >
>]>
>
><article>
>  <articleinfo>
>    <title>Test</title>
>    <author>
>      <firstname>Sagar</firstname>
>      <surname>Shah</surname>
>    </author>
>
>  </articleinfo>
>
>  <section id="MyFirstSection">
>    <title>foo</title>
>    <para>la la</para>  
>    <xi:include href="docbook-tech-support-1.dbk#xpointer(id('OtherIssues'))"/> 
>  </section>
></article>
>-----------
>
>This all works fine :-)

This is interesting to me.  Can you please tell us what tool(s) you
are using that have implemented XInclude?   (The W3C XML Core WG is
still looking for XInclude implementation experience, and it was not
clear to me that there was any great amount of XInclude support out
there yet, so any information would be of value.)

paul



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC