37 |
|
|
38 |
package gnu.xml.libxmlj.dom; |
package gnu.xml.libxmlj.dom; |
39 |
|
|
40 |
|
import org.w3c.dom.Node; |
41 |
import org.w3c.dom.xpath.XPathNSResolver; |
import org.w3c.dom.xpath.XPathNSResolver; |
42 |
|
|
43 |
/** |
/** |
46 |
* @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> |
* @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> |
47 |
*/ |
*/ |
48 |
class GnomeXPathNSResolver |
class GnomeXPathNSResolver |
49 |
implements XPathNSResolver |
implements XPathNSResolver |
50 |
{ |
{ |
51 |
|
|
52 |
GnomeDocument doc; |
Node node; |
53 |
|
|
54 |
GnomeXPathNSResolver (GnomeDocument doc) |
GnomeXPathNSResolver(Node node) |
55 |
{ |
{ |
56 |
this.doc = doc; |
this.node = node; |
57 |
} |
} |
58 |
|
|
59 |
public String lookupNamespaceURI (String prefix) |
public String lookupNamespaceURI(String prefix) |
60 |
{ |
{ |
61 |
return doc.lookupNamespaceURI (prefix); |
return node.lookupNamespaceURI(prefix); |
62 |
} |
} |
63 |
|
|
64 |
} |
} |
65 |
|
|