The Artima Developer Community
Sponsored Link

Java Answers Forum
cocoon

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
carl

Posts: 1
Nickname: mcfetto
Registered: May, 2004

cocoon Posted: May 21, 2004 12:01 AM
Reply to this message Reply
Advertisement
Hi, when I first started to use cocoon I had been told that cocoon can ”feel” what kind of device that is requesting data. (this done by metadata from the device). But I have not figured this out and I can only set in the pipeline if a device is requesting some document then different xsl-dokument is “loaded”.
Is there a way of doing this dynamically?

This is how I have don it:

<map:pipelines>
<map:pipeline>



<map:match pattern="">
<map:generate type="serverpages" src="logic/WSBinder.xsp"/>
<map:transform src="style/soap2html.xsl"/>
<map:serialize/>
</map:match>

<map:match pattern="wml">
<map:generate type="serverpages" src="logic/WSBinder.xsp"/>
<map:transform src="style/soap2wml.xsl"/>
<map:serialize type="wml"/>
</map:match>

<map:match pattern="pdf">
<map:generate type="serverpages" src="logic/WSBinder.xsp"/>
<map:transform src="style/soap2pdf.xsl"/>
<map:serialize type="fo2pdf"/>
</map:match>


</map:pipeline>
</map:pipelines>

Regards

c-o

Topic: set off string encrypting Previous Topic   Next Topic Topic: how to create exe file using java?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use