If your XPath expression is inside the repeating row of a table, then the element corresponding to the row of the table is the context node, say, Row. •If you use an absolute path, for example $XML/Row/@id, then the XPath expression will return a sequence of the @id values of all Row elements. If you are using an operation that expects one atomic value, the operation will generate an error. •If you use a relative path, for example @id, then, since for every repeating row, you have a context $XML/Row, the XPath expression will correctly return the single atomic value of the one @id attribute of the current Row element. |