286N/A/*
286N/A * reserved comment block
286N/A * DO NOT REMOVE OR ALTER!
286N/A */
286N/A/*
286N/A * Copyright 2002-2005 The Apache Software Foundation.
286N/A *
286N/A * Licensed under the Apache License, Version 2.0 (the "License");
286N/A * you may not use this file except in compliance with the License.
286N/A * You may obtain a copy of the License at
286N/A *
286N/A * http://www.apache.org/licenses/LICENSE-2.0
286N/A *
286N/A * Unless required by applicable law or agreed to in writing, software
286N/A * distributed under the License is distributed on an "AS IS" BASIS,
286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286N/A * See the License for the specific language governing permissions and
286N/A * limitations under the License.
286N/A */
286N/A/*
286N/A * $Id: XPathNSResolverImpl.java,v 1.2.4.1 2005/09/10 04:13:19 jeffsuttor Exp $
286N/A */
286N/A
286N/Apackage com.sun.org.apache.xpath.internal.domapi;
286N/A
286N/Aimport com.sun.org.apache.xml.internal.utils.PrefixResolverDefault;
286N/Aimport org.w3c.dom.Node;
286N/Aimport org.w3c.dom.xpath.XPathNSResolver;
286N/A
286N/A/**
286N/A *
286N/A * The class provides an implementation XPathNSResolver according
286N/A * to the DOM L3 XPath Specification, Working Group Note 26 February 2004.
286N/A *
286N/A * <p>See also the <a href='http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226'>Document Object Model (DOM) Level 3 XPath Specification</a>.</p>
286N/A *
286N/A * <p>The <code>XPathNSResolver</code> interface permit <code>prefix</code>
286N/A * strings in the expression to be properly bound to
286N/A * <code>namespaceURI</code> strings. <code>XPathEvaluator</code> can
286N/A * construct an implementation of <code>XPathNSResolver</code> from a node,
286N/A * or the interface may be implemented by any application.</p>
286N/A *
286N/A * @see org.w3c.dom.xpath.XPathNSResolver
286N/A * @xsl.usage internal
286N/A */
286N/Aclass XPathNSResolverImpl extends PrefixResolverDefault implements XPathNSResolver {
286N/A
286N/A /**
286N/A * Constructor for XPathNSResolverImpl.
286N/A * @param xpathExpressionContext
286N/A */
286N/A public XPathNSResolverImpl(Node xpathExpressionContext) {
286N/A super(xpathExpressionContext);
286N/A }
286N/A
286N/A /**
286N/A * @see org.w3c.dom.xpath.XPathNSResolver#lookupNamespaceURI(String)
286N/A */
286N/A public String lookupNamespaceURI(String prefix) {
286N/A return super.getNamespaceForPrefix(prefix);
286N/A }
286N/A
286N/A}