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

RE: String manipulation with script

Subject: RE: String manipulation with script
From: "Julian Reschke" <reschke@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Jun 1999 19:26:14 +0200
jscript string manipulation
> From: owner-xsl-list@xxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Olof Tornqvist
> Sent: Tuesday, June 15, 1999 1:11 PM
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: String manipulation with script
>
>
> I'm using the IE5 XSL parser, and in my script-code in the
> stylesheet I want to use string manipulating functions.
>
> For example:
>
> <xsl:script language="JScript">
> <![CDATA[
> function SubstringDemo()
> {
>   var s;
>   var ss;
>   var s = "The quick brown fox jumped over the lazy yellow dog.";
>   ss = s.substring(16, 19);
>   return ss;
> }
> ]]>
> </xsl:script>
>
> The s.substring() function gives me an error. This example is
> copied from the JScript documentation. Apperantly the
> Jscript-engine in the IE5 XSL parser does not support Jscript v.1
>
> Any workarounds? VBScript?

I just pasted your sample code into one of my stylesheets and it works just
fine in IE5. Maybe your JScript engine is not the latest one, it should be
possible to get a recent one from http://msdn.microsoft.com/scripting...

Regards, Julian



 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.