Mamei Marco wrote:
> 
> Hi,
> I am not able to connect multiple xsl stylesheet to a single xml document.
> I would like to create a portlet that sends html or wml or ... if it is
> browsed by a computer, wap phone,...
> In the psml registry file i set (trying to guess the syntax...)
> 
> <entry type="ref" parent="Cocoon" name="Marco"
> application="true"><url>/content/dynamic/Marco/xsp/index.xml</url>
> <parameter name="stylesheet"
> value="/content/dynamic/Marco/xsp/indexhtml.xsl"/>
> <parameter name="stylesheet" value="/content/dynamic/Marco/xsp/indexwml.xsl"
> media="wap"/>
> <metainfo>
> <title>Marco</title>
> <description>Work in Progress.</description>
> </metainfo>
> </entry>
> 

This doesn't work with the current jetspeed. The workaround to enable this with
the current version is to define 2 portlets HTMLMacro and WMLMacro and use
them in 2 different PSML files (for example home_html.psml and home_wml.psml).

You can then easily extend the default profiler to select the correct PSML file 
based on the capabilities of the user-agent.

--
Rapha�l Luta - [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to