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
              [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


> -----Original Message-----
> From: Simone Gianni [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, October 20, 2001 2:04 AM
> To: [EMAIL PROTECTED]
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to