I was given the following XML:
<root>
<items>
<item>
<title>Item</title>
<details>
<data xmlns="http://some_url">
<length>10</length>
<weight>1.2</weight>
</data>
</details>
</item>
</items>
</root>
Following XPath does not work meaning nothing is printed like the "data" element does not exists:
/root/items/item/details/data
But when I remove "xmlns" namespace attribute of "data" element it's content is printed. How should the xpath expression look like to work without deleting "xmlns" namespace attribute of "data" element?
I'm using SAXON and XSL 1.0.
alias:data/alias:length
. We can't get more specific than that without knowing what you are using to evaluate the XPath. – Francis Avila