Location Paths Change From Nodesets (1.0) to Sequences (2.0)
- Location paths in XPath 1.0 return node sets
- Location Paths in XPath 2.0 return sequences
- Node sets
- have no duplicates
- (by definition) were in no order
- Sequences
- are an ordered collection (list)
- of zero, one, or more items (not just nodes)
- may well have duplicates
So let’s look at sequences in context