This is the main XPath and XQuery example page. The examples are currently spread over three pages: Simple examples, Complex examples and Fonto specific examples. More examples will be added over time.

Simple examples

The Simple examples page contains examples like selecting nodes and using filters. These examples have a lot of overlap with the pages found under the Learning the language section.

Complex examples

The Complex examples page contains examples that require more specific XPath or XQuery knowledge. You will find more complex node selectors here. For example, selectors that select a common ancestor.

Fonto specific examples

The Fonto specific examples page contains examples that use functions that are unique to Fonto. These examples can therefore not be run in the playground and can not be used in other applications or programming languages that support XPath or XQuery.