cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tom stuart <...@obsess.com>
Subject Re: Sessions & Cookies
Date Wed, 19 Apr 2000 19:38:23 GMT
> OK. I know how to put some java in my XML pages...but how to put some
> in my XSL ?

XSL *is* XML. You can do any of the XSP stuff in your XSL pages too.

See Nicholas Hemley's earlier posting today about retrieving the request
parameters into an XSL file -

 http://xml-archive.webweaving.org/xml-archive-cocoon-users/2361.html

- for a good example that you should be able to build on.

And as for the anchor tag, you probably want to do it like this (once
you've retrieved the 'id' parameter and built your URL string elsewhere in
the XSP page):

	<a>
	<xsl:attribute name="href">
	<xsp:expr>response.encodeURL(myURL)</xsp:expr>
	</xsl:attribute>
	</a>

Hope this helps.

-Tom


Mime
View raw message