1 23 24 package com.sun.enterprise.tools.verifier; 25 26 import org.w3c.dom.Node ; 27 28 import com.sun.org.apache.xml.internal.utils.PrefixResolverDefault; 29 30 public class XpathPrefixResolver extends PrefixResolverDefault { 31 32 public static final String fakeXPrefix = "xpathfake"; 34 public XpathPrefixResolver(Node node) { 35 super(node); 36 } 37 38 public String getNamespaceForPrefix(String prefix, Node nc) { 39 if (prefix.equals(fakeXPrefix)) { 40 return "http://java.sun.com/xml/ns/j2ee"; } 42 return super.getNamespaceForPrefix(prefix, nc); 43 } 44 45 } 46 | Popular Tags |