cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: using xinclude?
Date Thu, 03 Aug 2000 18:01:23 GMT
On Thu, 3 Aug 2000, Jeremy Quinn wrote:

> At 23:34 -0400 02/08/00, Donald Ball wrote:
> >On Wed, 2 Aug 2000, Jeremy Quinn wrote:
> >
> >> Hi,
> >>
> >> I'm trying to use the XInclude processor, not only do my attempts work on
> >> my machine but neither do the samples.
> >
> >what do you get when you try the samples? your example below is
> >complicated because of the ../, but the samples are simple and work fine
> >on my box.
> 
> Oh dear, it really needs to work with relative urls :-(

it will - first things first (you'll be able to force it with the xml:base
attribute anyway).

> with this URL: http://localhost/cocoon/xinclude/xinclude.xml
> which is this file:
> 
> <?xml version="1.0"?>
> 
> <?cocoon-process type="xinclude"?>
> <!--<?cocoon-format type="text/xml"?>-->
> 
> <page
> 	xmlns:xinclude="http://www.w3.org/1999/XML/xinclude"
> >
> <include xinclude:parse="text" xinclude:href="foo.txt"/>
> <include xinclude:parse="xml" xinclude:href="foo.xml"/>
> </page>
> 
> 
> I get this response from TomCat 3.1 and Cocoon 1.8:
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
> "http://www.w3.org/TR/WD-html-in-xml/DTD/xhtml1-strict.dtd">
> <!--<?cocoon-format type="text/xml"?>-->
> <page xmlns:xinclude="http://www.w3.org/1999/XML/xinclude">
> <include xinclude:href="foo.txt" xinclude:parse="text"></include>
> <include xinclude:href="foo.xml" xinclude:parse="xml"></include>
> </page>
> <!-- This page was served in 1137 milliseconds by Cocoon 1.8-dev -->
> 
> It just looks like the processing is not getting done.

yep. really, it looks like you might not be using the latest version of
the xinclude processor. can you check out the latest cvs and send me the
output? i added a silly debugging comment for my edification.

- donald


Mime
View raw message