cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauro Daniel Ardolino <ma...@altersoft.com.ar>
Subject Re: Pipeline...
Date Thu, 10 Oct 2002 15:00:54 GMT
Of course.  But in this case this logic will not be reutilizated anywhere
else.  So I don't want to put this logic in a place that after can be
considered this way.  I think that I will have a lot of logic that I do
not want to reference in the .xconf configuration file.
Am I wrong?
Do I always have to make a logic style sheet as "taglib"?
When I worked in jsp, some of the logic wasn't in taglibs.

Thanks.

Mauro


On Wed, 9 Oct 2002, Vadim Gritsenko wrote:

> Mauro Daniel Ardolino wrote:
> 
> >Thanks a lot!!  It works fine.
> >
> 
> Although it works fine that's not what you really need.
> 
> To get best out of Cocoon, you need to make logicsheet (read more on 
> logicsheets in the cocoon docs) out of your
> 
> logic/prueba.xsl and use this logicsheet. See XSP sample which uses custom logicsheet
in logicsheet.xsp file - it's good place to start.
> 
> 
> Vadim
> 
> 
> 
> >-- Mauro
> >
> >On Mon, 7 Oct 2002, Joerg Heinicke wrote:
> >
> >  
> >
> >>Hello Mauro,
> >>
> >>you need two matches:
> >>
> >><map:match pattern="prueba.xsp">
> >>   <map:generate type="file" src="content/prueba.xml"/>
> >>   <map:transform src="logic/prueba.xsl" />
> >>   <map:serialize type="xml"/>
> >></map:match>
> >>
> >><map:match pattern="prueba.xml">
> >>   <map:generate type="xsp" src="cocoon://prueba.xsp"/>
> >>   <map:transform src="style/prueba_to_html.xsl"/>
> >>   <map:serialize type="html"/>
> >></map:match>
> >>
> >>Hope that's what you you want. At least it's that what I understand from 
> >>your two mails ;-)
> >>
> >>Regards,
> >>
> >>Joerg
> >>
> >>Mauro Daniel Ardolino wrote:
> >>    
> >>
> >>>Hello!
> >>>I cannot understand how to configure a pipeline for this:
> >>>I have a xml-file and a xsl-file(logic).  Applying them I want to obtain
a
> >>>xsp page and then apply another xsl-file(style) to obtain a html-file.
> >>>
> >>>Well, I've made this pipeline in my sitemap.xmap:
> >>>
> >>>   <map:match pattern="prueba.xml">
> >>>    <map:generate  type="file" src="content/prueba.xml"/>
> >>>    <map:transform src="logic/prueba.xsl" />
> >>>    <map:transform src="style/prueba_to_html.xsl"/>
> >>>    <map:serialize type="html"/>
> >>>   </map:match>
> >>>
> >>>If I comment this line:
> >>>    <map:transform src="style/prueba_to_html.xsl"/>
> >>>...I obtain the xsp page.
> >>>But it doesn't transform to a xml-file to after apply the other 
> >>>xsl-style-file.
> >>>
> >>>How can I do that?
> >>>
> >>>Thanks in advance.
> >>>
> >>>Mauro
> >>>      
> >>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 
> 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: mauro@altersoft.com.ar
website: http://www.altersoft.com.ar




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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