cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Morandini" <l.mo...@tin.it>
Subject RE: Aggregate and root elements
Date Sat, 20 Oct 2001 12:13:51 GMT
Simone,

	I think you should add another <msp:transform> stage in your pipeline in
order to remove the <boxes> tag; just a simple template element like this:

	<xsl:template match="boxes">
		<xsl:copy-of select="*|@*"/>
	</xsl:template>

	will do.

Best regards,

---------------------------------------------
               Luca Morandini
               GIS Consultant
              lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


> -----Original Message-----
> From: Simone Gianni [mailto:simone@discoone.com]
> Sent: Saturday, October 20, 2001 2:04 AM
> To: cocoon-users@xml.apache.org
> Subject: Aggregate and root elements
>
>
> Hi all ..
>
> 	I'm trying to do, with cocoon 2rc1, something like this :
> aggregate some
> contents, between these there are some which are themself
> aggregated, these
> are boxes on the right of my page, and some of them are static and common
> for all the site, some others are specific to a certain path, some others
> are based on other parameters.
>
> 	The boxes are in some files, some of this contain only one
> box, some
> others contain more that one box. So the structure of this XMl files is
> like this :
>
> <boxes>
> 	<box id="1234">
> 		<title>Ciao</title>
> 		<body>This is the body of the box</body>
> 	</box>
> 	<box id="5678">
> 		<title>Ciao</title>
> 		<body>This is the body of the box</body>
> 	</box>
> </boxes>
>
> 	When i aggregate them, i can add a root element to the
> entire aggregation,
> add a root element to every single aggregated file, but cannot remove the
> root "boxes" element in each file to obtain a plain box list.
>
> 	Is there a way to do it ? to remove the root element of an
> aggregated
> document?
>
> 	Thanks, ciao,
>
> 	Simone Gianni
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message