XQL 98 Examples
Selection and Extraction:
- all books by P.K. Dick//book[author=„P.K. Dick“]
Reduction:
- drop all but 1st author//*?/book?/(isbn | author[0] | title)
- * matches all elements along paths to book
- shallow return operator (?) retains nesting hierarchy
- union preserves document order (title before author)