[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Positional predicates in pattern matching

Subject: Re: Positional predicates in pattern matching
From: Kevin Jones <kjones@xxxxxxxxxxx>
Date: Fri, 2 Jul 2004 18:24:48 +0100
xslt positional predicates
I am clearly missing something here or at least not explaining very well.

If we are talking about a pattern, 

b[2] - match the 'b' which is the second sibling 'b'

b[something][2] - match the second node that survives the match b[something]

At least that is what I read the standard & earlier quote as saying although I 
could clearly be wrong on one or both counts. I suspect both of you are 
saying,

b[something][2] - match the 'b' which is the second sibling 'b' if 'something' 
evaluates to true. 

This is what I understand Saxon to be doing.

The standard explains how the first predicate evaluation starts but is rather 
silent on the effect on subsequent predicates. The simplest argument for the 
first behaviour is that it is after the first predicate we follow normal 
XPath behaviour.

Thanks for your replies,
Kev.



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.