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

Universally quantified test of child attribute presen

Subject: Universally quantified test of child attribute presence/absence
From: Yves Forkl <Y.Forkl@xxxxxx>
Date: Tue, 20 Mar 2007 12:56:59 +0100
 Universally quantified test of child attribute  presen
When processing some element in XSLT 2, I need to make sure whether all of its element children carry a specific attribute or if they don't. A mixed situation is to be considered as a fatal error, caught in an xsl:otherwise clause.

While the expression for the positive test obviously is

every $child in * satisfies $child/@my_attribute

I am unsure about the correct form of the negated expression to mandate that no child may have that attribute. Which variant can or must be used, and why?

every $child in * satisfies $child[not(@my_attribute)]

every $child in * satisfies not($child/@my_attribute)

not(every $child in * satisfies $child/@my_attribute)


Current Thread


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.
First Name
Last Name
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.