Jeremy Ford [EMAIL PROTECTED]
From: [EMAIL PROTECTED] Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> Subject: Problems with XSLPortlet Date: Mon, 23 Feb 2004 17:04:33 +0100
Hi,
I put a XSLPortlet in my portal in order to show the information stored in a XML file with a XSL file. I follow the instructions and I make a portlet like this:
<portlet-entry name="AXSL" hidden="false" type="ref" parent="XSL" application="false"> <meta-info> <title>XSL Empresas</title> <description></description> <image></image> </meta-info> <classname>org.apache.jetspeed.portal.portlets.XSLPortlet </classname> <parameter name="stylesheet" value="/WEB-INF/xsl/Pub.xsl" hidden="true" cachedOnName="true" cachedOnValue="true"/> <media-type ref="html"/> <url cachedOnURL="true">/xml/Pub.xml</url> <category group="Jetspeed">vPortalXsl</category> </portlet-entry>
The result is a portlet that shows this message: "stylesheet not defined"
I work with Jetspeed 1.4 and I think the problem is in the XSLViewProcessor class. In this class:
1.- We make a hashtable in order to store the stylesheets. The key for the stylesheet is MimeType.HTML.toString(), that is "text/html; encoding=UTF-8" 2.- We retrieve the stylesheet from hashtable with the key ((JetspeedRunData) data).getCapability().getPreferredType().toString(), in my project this value is "text/html" (!= "text/html; encoding=UTF-8"). 3.- We cannot retrieve the stylesheet.
How can I solve this problem?
Thanks,
Jose
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Click, drag and drop. My MSN is the simple way to design your homepage. http://click.atdmt.com/AVE/go/onm00200364ave/direct/01/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
