[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: Old vs. New and LotusXSL


Subject: Re: Old vs. New and LotusXSL
From: Sunil Jain <sujain@xxxxxxxxx>
Date: Wed, 15 Sep 1999 10:01:42 -0600

Jon,

Try with if condition before substring.
If length($getModuleNumberCurrent) > 11 then substring.
At some place it might not be finding string with llength greater than 11

Sunil
At 09:30 AM 9/15/99 -0700, you wrote:
>The following code works fine on my local machine running v0_18_2. Any
>reason why it would work with the immediate previous version of LotusXSL?
>
><xsl:variable name="getModuleNumberCurrent">
><xsl:value-of select="PXML/@about"/>
></xsl:variable>
><xsl:variable name="moduleNumberCurrent">
><xsl:value-of select="substring($getModuleNumberCurrent, 11, 1)"/>
></xsl:variable>
>
>I get this error when I run it on my server which is the previous version:
>
>Error! String index out of range: -9 XSL Process was not successful.
>
>Help!
>
>Thanks,
>
>Jon
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


Sunil Jain
Field Productivity Engineering
Cisco Systems, Inc
Email : sujain@xxxxxxxxx
Phone: (408) 525-6773
Page: sujain@xxxxxxxxxxxxxxx


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



Current Thread
Keywords
xsl