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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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


Subject: Re: DOCBOOK: Re: Advantages of XInclude?


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

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


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


Powered by eList eXpress LLC