cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morrison, John" <John.Morri...@uk.experian.com>
Subject RE: [C2] xinclude
Date Mon, 04 Dec 2000 14:55:52 GMT

------------------ docs/menu.xml ------------

<?xml version="1.0"?>

<page xmlns:xinclude="http://www.w3.org/1999/XML/xinclude">
	<menu title="Links">
		<menuitem xinclude:parse="xml" xinclude:href="data.xml"/>
	</menu>
</page>

------------------ map ---------------------

   <map:match pattern="menu.html">
    <map:generate src="docs/menu.xml"/>
	<map:transform type="xinclude"/>
	<map:serialize type="xml"/>
   </map:match>

--------------------------------------------

No include appears to be done, do you know what I'm missing?  No errors are
being written to any logs...

> -----Original Message-----
> From: Paul Russell [mailto:paul@luminas.co.uk]
> Sent: 04 December 2000 2:38 pm
> To: cocoon-dev@xml.apache.org
> Subject: Re: [C2] xinclude
> 
> 
> On Mon, Dec 04, 2000 at 02:14:48PM -0000, Morrison, John wrote:
> > Hi,
> > 
> > I'm attempting to move some xml/xsl I developed under C1 to 
> C2.  Do I need
> > to do anything in the sitemap to get the xinclude's to work?
> 
> Yep. Add an extra translate phase to the pipeline you're using.
> 
> <map:match ...>
> <map:generate .../>
> <map:translate type="xinclude"/>
> <map:translate .../>
> <map:serialize/>
> </map:match>
> 
> HTH,
> 
> P.
> 
> -- 
> Paul Russell                               <paul@luminas.co.uk>
> Technical Director,                   http://www.luminas.co.uk
> Luminas Ltd.
> 


=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

Mime
View raw message