cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: [C2] XML-XSP->XSLT
Date Thu, 12 Apr 2001 12:57:08 GMT


On Thu, 12 Apr 2001, Piroumian, Konstantin wrote:

> Hi all!
>
> Is it possible to do this in C2 without creating a custom generator? And if
> yes, which is the best way in this situation: I have pure XML form
> descriptions, then I need to add a common logic to them, then I apply a
> stylesheet. So, I need a pipeline like this:
> <map:match pattern="search/*.xml">
>     <map:read src="xml/forms/{1}.xml" mime-type="text/xml"/>
>     <map:transform src="xsl/cc-xsp.xsl"/>
>     <map:generate type="serverpages" src="xml/forms/{1}.xml"/>
>     <map:transform src="xsl/cc-html.xsl"/>
>     <map:serialize />
> </map:match>

No, this is not possible in C2. You have to rewrite your stylesheet
named cc-xsp.xsl into a logicsheet and apply it directly onto your
forms/{1}.xml like:

 <map:match pattern="search/*.xml">
     <map:generate type="serverpages" src="xml/forms/{1}.xml"/>
     <map:transform src="xsl/cc-html.xsl"/>
     <map:serialize />
 </map:match>

The generator has to come first. This is the concpt of a C2 pipeline.

Giacomo

>
> All the processing logic will be in Action, but I will need also some logic
> to generate the presentation (Next, Prev buttons etc.)
>
> Any help is appreciated.
>
> Regards,
>     Konstantin Piroumian.
>
> ---------------------------------------------------------------------
> 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