PDA

View Full Version : how to get the value from XSLT by Javascript



hi_world
07-04-2011, 02:17 PM
hi,guys! I face the challenge when i want to get the value from the XSLT!
the code is below:

<SCRIPT type="text/javascript">
var info="<xsl:value-of select='Content/report_content/report_content_value' />";//I have an xml file
//??? I don't know how to get the value,I just want to get it handily
// maybe i use the wrong method



//var info="report_content"; //if do it like this ,it's ok
document.write(info);
</SCRIPT>
could you help me ? Thank you!