String manipulation with script

Subject: String manipulation with script
From: Olof Tornqvist <olof@xxxxxxxxxxxxxxx>
Date: Tue, 15 Jun 1999 13:11:20 +0200
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">
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;

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?


Olof Tornqvist,

 XSL-List info and archive:

Current Thread