cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Re: Passing variables between XSL and JavaScript
Date Tue, 08 Nov 2005 07:06:24 GMT
Or, more formally:
<a><xsl:attribute name="href">custdata_popup?bunit_num=
<xsl:value-of select='sql:row[2]/sql:param1'/><xsl:attribute></a>
(be careful to avoid extra spaces and lines when using this

>>> 2005/11/08 01:00:58 AM >>>

On Nov 7, 2005, at 2:45 PM, Oleg Konovalov wrote:

> The problem is that I have to pass the value of the XSL variable
> as a parameter to that URL as:
> 'custdata_popup?bunit_num='>
> How can I do that ?

It's called an "attribute value template", and it's part of XSLT. E.g,

<a href="custdata_popup?bunit_num={sql:row[2]/sql:param1}">click me</a>


To unsubscribe, e-mail: 
For additional commands, e-mail: 

This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
CSIR E-mail Legal Notice 
CSIR Copyright, Terms and Conditions 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.

View raw message