[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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) Yves
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|