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


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: Re: Advantages of XInclude?


On Wed, Nov 13, 2002 at 01:14:30PM -0500, Daniel Veillard wrote:
> On Wed, Nov 13, 2002 at 09:34:17AM -0800, Bob Stayton wrote:
> > >   Right, XInclude requires the addition of xml:base at the inclusion
> > > point (unless the document included and the main one share a base
> > > which makes it unecessary, like if they are in the same directory).
> > > I see no other way than adding xml:base  to the DocBook DTD (which would
> > > make sense to me but it's not my call.)
> > 
> > I was going to suggest using an XML catalog to locate XIncludes,
> > so that any xml:base could appear in the catalog file rather
> > than the document. 
> 
>   that won't do it. XInclude does not need xml:base in the input, it adds it
> to the output. The goal is to keep all URI-References made from the included
> parts correct. Basically if main.xml includes chap/chap1.xml and chap1.xml
> references img1.jpg , the the presence of the xml:base added at the inclusion
> point preserves the "img1.jpg" URI-Reference from the chapter included.
> Explained formally at:
>    http://www.w3.org/TR/xinclude/#base

OK, thanks for clarifying that.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com


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