Attribute selection with namespaces

Task

Source document

<document xmlns:xlink="http://www.w3.org/1999/xlink">
  <reference xlink:href="http://www.google.de/" />
</document>

Challenge

Select the value of the attribute “href”, which is connected to the namespace “http://www.w3.org/1999/xlink”. For your XPath expression, this namespace is attached to the prefix x.

Desired selection (text output)

http://www.google.de/

Available prefix for the XPath-expression

prefixNamespace
xhttp://www.w3.org/1999/xlink

Exercise

Your input

Eine Lösung wäre: Lösung