[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] JavaScript access to
RE: [xsl] JavaScript access to results
Subject: RE: [xsl] JavaScript access to <xsl:script> results From: "Smothers, Brian" <Brian.Smothers@xxxxxxx> Date: Wed, 13 Mar 2002 11:03:23 -0500 |
Hi Andrew - Thanks... if I couldn't do it my way (and apparently I can't), I was going to do the little rewrite using the DOM and calculate the values directly from the XML data. If I do this, however, what the heck do I need XSL for? Seems more trouble than it's worth... I'll look into XSLT but I'm much more familiar with JavaScript so the rewrite here is trivial. Thanks again for your advise and help, Brian -----Original Message----- From: Andrew Welch [mailto:awelch@xxxxxxxxxxxxxxx] Sent: Wednesday, March 13, 2002 10:47 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] JavaScript access to <xsl:script> results Brian, The script used in <xsl:eval> and <xsl:script> is embedded script used in the transformation process - it is not available to the output. If you need access to values produced from evals, just access access them using the html dom in the output. btw, unless you have to use wd-xsl, upgrade to xslt and ditch evals altogether (you know it makes sense ;) cheers andrew > > 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 > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] JavaScript access to <xsl:scr, Smothers, Brian | Thread | Re: [xsl] JavaScript access to <xsl, Jeni Tennison |
[xsl] xsl:sort by element name, Mike Ferrando | Date | [xsl] implementing XPath over a DB , Russell Balest |
Month |