Path Expressions in XPath 2.0
Location paths are still part of XPath 2.0
- Each path is still a series of steps
- Each step is still in three (potential) parts
- Delimited by “/”
- ancestor-or-self::div[@type][1]/@type is a path in two steps
- /PLAY/ACT/SCENE/SPEAKER is a path in four steps
- Paths are still relative and absolute (to the root)
- Short and long syntax are still with us