Context item expressions
A context item expression consists of a single period (.). A context item expression evaluates to the item that is currently being processed, which is known as the context item. The context item can be either a node or an atomic value.
Example
The following example contains a context item expression that identifies nylon pants in the products document:
SELECT XMLQUERY ('declare namespace ipo="http://www.example.com/IPO";
/ipo:products/product/name[. = "Nylon pants"]'
PASSING XMLPO)
FROM T1
The result is:<name xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ipo="http://www.example.com/IPO">Nylon pants</name>