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">
<![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?

Regards,

Olof Tornqvist,


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


Current Thread