Within non-matching-substring the context item will always be a string. Therefore, the only way to find nodes using a path expression is by starting the path expression with a variable. This includes path expressions starting with "/", because as in your other problem reported today, "/" refers to the root of the tree that contains the context item.
Michael Kay

From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Alexander Shrago
Sent: 21 May 2004 10:54
To: saxon-help@lists.sourceforge.net
Subject: [saxon] about xsl:non-matching-substring


Saxon raises "Finding root of the tree: the context item is not a node" error when trying to use XPath not referencing the context item within xsl:non-matching-substring's sequence constructor.