|
| node() | Test is true for any type of node |
| text() | Any text node |
| comment() | Any comment node |
| processing-instruction() | Any processing instruction node |
You can still test nodes by name
| child::item | Retrieves any child elements named item |
| parent::item | Retrieves any parent elements named item |
| attribute::type | Retrieves any attributes named type |
| ancestor-or-self::list | Retrieves any ancestor elements named list, or the context node itself if it’s a list element |
![]() |
|