public void testNamespaceURIOfAttributeInNamespace() throws JaxenException
{
XPath xpath = new DOMXPath( "namespace-uri(/*/@*)" );
Attr a = doc.createAttributeNS("http://www.w3.org/", "pre:name");
doc.getDocumentElement().setAttributeNode(a);
Object result = xpath.evaluate(doc);
assertEquals("http://www.w3.org/", result);
}
public void testNamespaceURIOfTextIsEmptyString() throws JaxenException
{