Code example for NamespaceContext

Methods: getNamespaceURI

0
    else 
      { 
        prefix = name.substring(0, ci);
        localName = name.substring(ci + 1);
      } 
    uri = nsctx.getNamespaceURI(prefix);
    if (uri == null)
      { 
        return (xpathFunctions.contains(localName)  ||
                xsltFunctions.contains(localName)) ?
          Boolean.TRUE : Boolean.FALSE;
      } 
    else if (Stylesheet.XSL_NS.equals(uri))
      { 
        return xsltFunctions.contains(localName) ?
          Boolean.TRUE : Boolean.FALSE;
      } 
    // TODO extension functions 
    return Boolean.FALSE;
  }