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

Re: [xsl] Re: A question about the expressive power and limitations of XPath 2.0


Subject: Re: [xsl] Re: A question about the expressive power and limitations of XPath 2.0
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Sun, 13 Jan 2002 18:56:55 +0000

David,

>> We would have to address here the problem that Marc pointed out to do
>> with how repeated subexpressions are captured...
>
> probably you'd just have to do whatever perl does with the meaning of
> numbered subterms that are repeated. 

Apparently that's "capture the last one". So if you had:

  match('bar', '(.){3}')

then the first subexpression would have the value 'r'.

I can see why that's the case - otherwise you wouldn't be able to
predictably access matched subexpressions after that one by number.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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



Current Thread