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

Re: with XPath 1.0, select all following sibling eleme

Subject: Re: with XPath 1.0, select all following sibling elements of name "foo" up to the first non-"foo" element
From: "Wolfhart Totschnig wolfhart.totschnig@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 Feb 2021 13:02:35 -0000
Re:  with XPath 1.0
Hello,

Just eyeballing this, Dmitry, I'm not convinced it would work if Wolfhart was sitting at a <foo> at the time he made his request, in which case the <foo> he was at would incorrectly be included.

Granted the original requirement is underspecified in this regard, so perhaps my observation is irrelevant. I'm not trying to nit-pick but I discounted the use of keys because of the arbitrary starting point for evaluation.

Wolfhart, am I being too pedantic here?

I have never used <xsl:key>, so I cannot evaluate Dimitre's solution. But yes, the current element may be a <foo> in my case. Sorry for not making that clear in my original request!


Wolfhart

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.