cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <jer...@media.demon.co.uk>
Subject Re: using xinclude?
Date Thu, 03 Aug 2000 09:29:07 GMT
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 :-(

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.

With IWS Server and Cocoon 1.7.5 I get this:

java.lang.RuntimeException: Cannot access non-file/war resources
	at org.apache.cocoon.Utils.getBasename(Utils.java)
	[snip]

regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <mailto:sharkbait@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pager:jermq@sms.genie.co.uk>

Mime
View raw message