Hitachi

uCosminexus Application Server XML Processor User Guide


6.8.4 Notes on the XPath Expression

Table 6‒16: Notes on XSLTC (XPath expression)

No.

Notes

1

If you specify a document function followed by an XPath expression, use /descendant-or-self::node()/ instead of //.

2

Do not use the current function in the top-level element.

3

If you use the node test node() in an XPath expression, nodes cannot be obtained properly.

4

If 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.

5

If 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.