Skip to content
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

Attributes and children #6

Open
djbpitt opened this issue Jun 14, 2020 · 1 comment
Open

Attributes and children #6

djbpitt opened this issue Jun 14, 2020 · 1 comment

Comments

@djbpitt
Copy link

djbpitt commented Jun 14, 2020

Attributes are not children, although (confusingly, but that's just the way it is) they may have parents. You write:

"an attribute can only exist as a child of an element" (p. 37)

"since attributes are children of their parent element, you can think of the attribute axis as a special type of child axis: it just selects attribute nodes and no other type of child nodes" (p. 61)

This matters because it presents attributes as a subtype of children, and if that were the case, selecting all children would also select attributes. The statement that the attribute axis selects only attributes is true, much as selecting all (biological) eldest children selects only eldest children, and no other type of child. But selecting all (biological) children selects both eldest and non-eldest, while selecting all child nodes does not also select attributes.

@github-actions
Copy link

Message that will be displayed on users' first issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant