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

[xsl] Re: Is substring -before cyclic in nature?


Subject: [xsl] Re: Is substring -before cyclic in nature?
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Fri, 18 Apr 2003 15:18:23 +0200

I cannot reproduce your finding. The result for the first substring-before()
is the empty string.

Tested with: MSXML3/4, .Net xslTransform, Saxon 6.5, Saxon 7.4, XalanC 1.3,
XalanJ 2.4.1, xsltProc (libxml 20504 and libxslt 10027)


=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL


"Leena Kulkarni" <mulberrylist@xxxxxxxxxxx> wrote in message
news:20030418120100.74013.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I am using substring-before on
>
> <tag>Value is 10</tag>
> <tag>This Value is 10</tag>
> <tag>Check for Value</tag>
>
> like this -
> substring-before(.,'Value')
>
> In the first case
> <tag>Value is 10</tag>
>
> I am getting the result as - Value is 10
> I am expecting to get nothing here.
> Does substring-before behave cyclic if the
> value is found at the start of the string?
>
> Thanks in advance.
>
> ________________________________________________________________________
> Missed your favourite TV serial last night? Try the new, Yahoo! TV.
>        visit http://in.tv.yahoo.com
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>




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



Current Thread