cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: XInclude
Date Mon, 25 Aug 2003 16:15:46 GMT
On Mon, 2003-08-25 at 13:15, Joerg Heinicke wrote:
> Bruno, who implemented the new XInclude stuff, is/was on vacation AFAIK. 

I'm back now ;-)

> Why not simply filing a bug?

agreed, and preferably with some more information, see below...

> 
> Niclas Hedhman wrote:
> > Niclas Hedhman said:
> > 
> >><xinclude:include href="abc.xml" />
> >>
> >> does not behave correctly. The xml:base is set to the top-level
> >>directory, i.e. content/, and not to the same directory as the
> >>including document as the spec says.
> >>Setting the xml:base attribute to the current directory, absolute
> >>or relative to the content/, works but is not a solution.

The XInclude transformer depends on the setDocumentLocator() SAX event
for getting the base location in case there is no xml:base attribute. If
you simply have a FileGenerator with after that the XInclude
transformer, everything should work well. But maybe your problem is
caused by using another generator, or by using a transformer before the
XInclude transformer which doesn't let through the setDocumentLocator
event.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


Mime
View raw message