This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Including Fragments of other DocBook Documents


>-----Original Message-----
>From: Paul Grosso [mailto:pgrosso@arbortext.com]
>Sent: 19 June 2002 15:01
>To: Shah, Sagar; docbook-apps@lists.oasis-open.org
>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.)

I don't know how mature it is, but the Xinlcude support in libxslt and libxml2 works great for me :-)

Get in touch if you want more info.

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]