xsl with javascript
Posted
by Vignesh
on Stack Overflow
See other posts from Stack Overflow
or by Vignesh
Published on 2010-03-15T07:15:08Z
Indexed on
2010/03/15
7:19 UTC
Read the original article
Hit count: 335
I've a file with xml data. And I want to generate a report out of it. I tried to integrate xsl with java script, but can I get a handle of individual data elements in xsl and pass it on to a java script function.
Lets say <value>true</value>
is in the xml and I want to pass it on to a javascript function while doing something like this in xsl.
<xsl:for-each select="/valgroup">
<xsl:value-of select="value"/>
</xsl:for-each>
The alternative is to parse the xml in java script and get the values, I've got little idea of how to integrate it with xsl.
Are there any java script libraries. I've seen my libraries that run on servers(AJAXSLT), but I need something that runs locally.
I'm a new to xslt, so consider this a worthy question.
© Stack Overflow or respective owner