March 2007
Intermediate to advanced
512 pages
21h 15m
English
You have specified a relative path expression, but the current context item is not a node. This might occur, for example, if you use a relative path in a predicate where the current context item is an atomic value, as in:
doc("catalog.xml")//product/substring(name,1,3)[@dept = 'ACC']The path expression @dept is being evaluated relative to the substring of the name (an atomic value) rather than the product element. In this case, the predicate can be moved to the previous step, as in:
doc("catalog.xml")//product[@dept = 'ACC']/substring(name,1,3)Read now
Unlock full access