[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: JavaScript access to <xsl:script> results

Subject: Re: JavaScript access to <xsl:script> results
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 13 Mar 2002 16:32:42 +0000
access javascript from xslt
Hi Brian,

> 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...

WD-XSL (which is what you're using) is always more trouble than it's
worth! XSLT is more trouble than it's worth if all you're using XSLT
for is a wrapper around JavaScript functions.

What XSLT is good at is transforming XML into another text-based
format, especially a different markup language. If you were creating
your pie charts in SVG, for example, then XSLT would be a good tool
for the job.

I was going to say "perfect" but unfortunately XPath doesn't have much
in the way of support for trigonometric functions, which you need in
order to create pie charts in SVG - implementing trigonometric
extension functions is a good use for JavaScript within XSLT (see
http://www.exslt.org/math/).

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.