March 2007
Intermediate to advanced
512 pages
21h 15m
English
This error is raised in two separate cases:
When a path expression starts with / or // and the current context node is not part of a complete XML document (with a document node at its root)
When using a treat expression, if the operand of the expression does not match the sequence type specified
In the first case, you can fix the expression by starting with a call to the root function, which does not require the root to be a document node. For example, you could use root(.)/descendant-or-self::product instead of just //product.
Read now
Unlock full access