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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--