[xsl] JavaScript access to <xsl:script> results

Subject: [xsl] JavaScript access to <xsl:script> results
From: "Smothers, Brian" <Brian.Smothers@xxxxxxx>
Date: Wed, 13 Mar 2002 09:30:46 -0500
Hi All -

Searched the archives, but can't find a solution to the very last part of my
problem.

Here's what I'm doing:
I have an <xsl:script> which sorts and sums 3 values extracted from my XML
datastream (I get the correct results displayed via <xsl:eval> command).
I'm then building several VML generated pie charts using JavaScript
variables (globally defined).

I've defined the variables as Global within the <xsl:script> (not sure this
is legal, but it doesn't cause errors) thinking that I could then simply
access them from the JavaScript routine which builds and displays the VML
piecharts.

These 2 "routines" work fine separately (all this stuff is in a single XSL
Style Sheet).

Here's the problem:
I can't seem to access the XSL results/variables from JavaScript (I get an
undefined variable error).
Is there a way to do this?

I need these results to tie everything together... sort, sum and finally
build these dynamic piecharts from the XML data.

Any suggestions would be appreciated.

Brian

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread