• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Suspected typo in practice question

 
C Wong
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
C Wong
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Valentin. I got it now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic