6.8.4 Notes on the XPath Expression

Table 6-16 Notes on XSLTC (XPath expression)

No.Notes
1If you specify a document function followed by an XPath expression, use /descendant-or-self::node()/ instead of //.
2Do not use the current function in the top-level element.
3If you use the node test node() in an XPath expression, nodes cannot be obtained properly.
4If you code an XPath expression that combines a node test including an * (asterisk) with a logical operator as the XPath expression, an error occurs during the parsing of the XPath expression.
5If the value of a variable or parameter is a result tree fragment (not a value in the select attribute, but a value defined by the template that is coded as an element content), a NullPointerException may occur when there is a variable reference in the template.