cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Re: Newbie: Generating XML before rendering HTML
Date Fri, 07 May 2004 06:04:34 GMT
Its unusual to want to store a file before processing it;
perhaps you can expand more on this statement:

" I want to understand what is the content of the XML
being used , so that I can write my . xsl file correctly."

In the meantime, have a look at:

(and note the warning at the end!)


>>> 2004/05/06 07:48:31 PM >>>


I have the sitemap.xmap configured as below.

What we are tyring to do is to get data from the database, store it
session and render it as HTML.

I would like to know how we can generate a  xml file to a local
before it gets rendered to the brower.

I need this , as I want to understand what is the content of the XML
being used , so that I can write my . xsl file correctly.

Would appreciate if some one can tell me how to achieve this or throw
some pointer to achieve the same.

Thanks in advance.

Have a nice day.



    <map:match pattern="test/*/ ">

      <map:aggregate element="page" label="page-content">

        <map:part src="cocoon:/test-contents/" />

        <map:part src="cocoon:/actions" />

        <map:part src="cocoon:/test-meta/{1}" strip-root="true" />


      <map:call resource="convertTo-html">

        <map:parameter name="action" value="./act" />



<map:match pattern="test-contents/">

      <map:generate type="session-attr">

        <map:parameter name="attr-name" value="{1}" />

        <map:parameter name="root-element" value="content" />


      <map:transform type="paginate"


      <map:serialize type="xml" />


<map:resource name=" convertTo-html ">

      <map:transform src="stylesheets/test-framed.xsl">


      <map:call resource="show-page" />


   <map:resource name="show-page">

     <map:act type="locale">

       <map:transform type="i18n">

         <map:parameter name="locale" value="{locale}" />



     <map:transform type="abs" src="abs-config.xml" />

     <map:serialize type="xhtml" />


Confidentiality Notice

The information contained in this electronic message and any
attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential
or privileged information. If
you are not the intended recipient, please notify the sender at Wipro
or immediately
and destroy all copies of this message and any attachments.

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message