cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Viohl" ...@hw-edv.de>
Subject escaping & in xsl --> JavaScript
Date Fri, 05 Jan 2001 11:21:04 GMT
How can I simply escap (or unescape) the & character for building javascript
URLs?

My code:
....
<xsl:text>javascript:parent.mainFrame.location=
	'next_page.xml?param1=abcd</xsl:text>								<xsl:text>&amp;</xsl:text>
<--- result=&amp;						<xsl:text>param2=xyz;'
....

it should give the result:
javascript:parent.mainFrame.location='next_page.xml?param1=abcd&param2=xyz;'

but gives this:
javascript:parent.mainFrame.location='next_page.xml?param1=abcd&amp;param2=x
yz;'

???
Thomas


Mime
View raw message