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