hello

I'm still trying to finish my prototype with Jetspeed. But I'm really
stuck at a problem with passing a parameter to a Stylesheet.

I have used the XSLPortlet as a base for my own portlet. There I call
the Method transform from the class SimpleTranform.

It is possible to pass parameters containing numbers, but I am not
able to pass a URL. In my Stylesheet the Value of the parameter
is lost. 

portlet :

this_uri = URILookup.getURI( URILookup.TYPE_HOME, URILookup.SUBTYPE_NONE, 
(Portlet)this, data );
hash.put( "URI", this_uri );
...
content = new ClearElement(
        SimpleTransform.transform( getPortletConfig().getURL(), stylesheet, hash ) );


and in the stylesheet

..
<xsl:param name="URI">none</xsl:param>
<h1>Before:<xsl:value-of select="$URI"/>:After</h1>
..

if I pass no parameter to the Stylesheet the output is : Before:none:After 
if I pass a number ( ex. 10 ) to the Stylesheet the output is : Before:10:After 
if I pass a String ... the param gets lost, output is : Before::After

is this me, not unterstanding how to pass these parameters, or is it a bug
a) in Jetspeed or b) in xalan ??


ok, and what is the best way to get a URL pointing to the actual pane ?
if I use getURI( URILookup.TYPE_HOME, ... ) I always get a URL pointing
to the first pane.


thanks

alani

-- 


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?:          [EMAIL PROTECTED]

Reply via email to