-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow self::(a|b|c) #107
Comments
This would be great! This would be a far more natural way to express NodeTests like these. |
Here's the detail.
(Note, I've chosen not to allow In 4.6.2.2 we need to add "A ParenthesizedNodeTest matches a node if any of its constituent SimpleNodeTests matches the node". Apart from that it's just a case of adding examples and notes. XSLT needs to pick up the change in the syntax for patterns. A pattern that uses a ParenthesizedNodeTest has a default priority of +0.5. |
Note that most of the time, this construct is just syntactic sugar: However, with a reverse axis, it does add expressive power. |
This change has been implemented. |
After an explicit axis specifier (including the abbreviated axis specifier "@", but not including the default axis specifier), allow a composite NodeTest that consists of a |-separated list of NodeTest's in parentheses. For example
@(id|name)
ancestor::(section|chapter)
child::(comment()|processing-instruction())
The composite NodeTest matches a node if any of its constituent NodeTest's matches.
The text was updated successfully, but these errors were encountered: