cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piroumian, Konstantin" <KPiroum...@flagship.ru>
Subject Re: [C2] XML-XSP->XSLT
Date Thu, 12 Apr 2001 13:15:45 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.

I know what means logicsheet in C1 (<xml-logicsheet ...>). So, do you mean a
taglib or there is also a possibility to add <xml-logicsheet>s to XML and C2
will process them?
Doesn't it break the C2 concept of the sitemap?

    Kot.

---------------------------------------------------------------------
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