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

Re: problem with XPath count()

Subject: Re: problem with XPath count()
From: "Bauman, Syd s.bauman@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 1 Nov 2023 15:07:05 -0000
Re:  problem with XPath count()
Of course

 empty(preceding-sibling::*)

and

 not(preceding-sibling::*)

test that the current <text> node does not have any preceding sibling
elements. As I (mis-)?read the OP, the request was about preceding <text>
sibling elements, in which case


 empty( preceding-sibling::text )

or

 not( preceding-sibling::text )

________________________________
Indeed.



Or, to be more literal and less XPath-idiomatic,



empty(preceding-sibling::*)



Thanks Mike! For this contribution and every other time youve rescued us from
ourselves.

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.