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

Re: Converting wd-XSL to XSLT

Subject: Re: Converting wd-XSL to XSLT
From: Jim Smith <jimsmith0@xxxxxxxxx>
Date: Thu, 10 Feb 2005 10:50:04 -0600
wd xsl
On Wed, 9 Feb 2005 23:55:07 -0000, Michael Kay <mike@xxxxxxxxxxxx> wrote:

> xsl:script was used for embedding JavaScript. Because of the limitations of
> the WD-xsl language and the inexperience of its users, WD-xsl stylesheets
> often contain vast amounts of embedded script. You can reproduce this in
> MSXML3 using <msxml:script> elements, but in most cases it would be much
> better to translate it to native XSLT code.

The main thing I need the Javascript for is the formatting of dates. 
The XML produced by our database expresses dates as milliseconds since
January 1, 1970.  The only formatting technique suggested by the
documentation for our database is to use Javascript's Date class.  If
there's a way to format these dates in native XSLT, or anything
besides embedding the Javascript into the code, I haven't found it
yet.

I've seen examples in this list's archives of using <msxml:script> to
embed Javascript, but I've had trouble adapting the examples I've seen
into my own XSL.

Jim Smith

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.