xsl-list
[Top] [All Lists]

Re: Is substring -before cyclic in nature?

2003-04-18 06:18:23
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(_at_)yahoo(_dot_)co(_dot_)in> wrote in message
news:20030418120100(_dot_)74013(_dot_)qmail(_at_)web8107(_dot_)mail(_dot_)in(_dot_)yahoo(_dot_)com(_dot_)(_dot_)(_dot_)
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



<Prev in Thread] Current Thread [Next in Thread>