[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Assign the XML text to Javascript Variable value

Subject: Re: [xsl] Assign the XML text to Javascript Variable value
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Thu, 11 Feb 2010 15:40:09 +0000

> I have developed one XSL for viewing purpose in xml file, I want know how to
> assign the xml text into javascript "var" value. Within the XSL file (i.e.
> text())
> Actual in my requirement is particular word in XML file (i.e. this word
> anywhere appears in the xml element) need to change another one word (e.g
> "Ganesh" to "Selva"). Also how to handle the special character (quotes,
> apos, plus, minis, etc...). This is during the browser viewing purpose.

Design your HTML and Javascript by hand, get that working... Then
write the XSLT to transform your input into that output.  If you are
having problems with the transform, post the sample output, the
relevant part of your transform, and some sample input.

Andrew Welch
Kernow: http://kernowforsaxon.sf.net/

Current Thread