<xsl: when test="not(descendant::*[SomeAttribute])">
Does this mean to check if a context node does NOT have a descendant with a child element SomeAttribute ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes. Since a node set as boolean is false if the set is empty and true if it is not, the effect is that the test will fail if the context node has a
SomeAttributedescendant at least two levels down the tree (grandchild, great-grandchild, etc.). If the context node hasSomeAttributechildren but not deeper descendants, or has noSomeAttributedescendants at all, then the test will succeed.