An XPath expression returns "hello" in a text node when the expression is processed on an XML document. The XML document is well-formed and valid, but does not contain "hello". Which of the following BEST explains the situation? a. The axis is incorrectly specified. b. The XSLT processor resolved the entity references. c. An incorrect relative location path is specified with respect to the current context node. d. There is a missing "/" at the end of the location path. e. There is a missing "@" somewhere in the location path. Single Select - Please select the best answer (one and only one choice must be selected). Ans: b? C is more logical!
posted 14 years ago
The question states that the string "hello" does not appear anywhere in the XML document. In order to appear in the transformed XML document, it must be present somewhere, and that "somewhere" is an entity reference that the XSLT processor has resolved during the transformation.