[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: String manipulation with script
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|