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

Reply via email to