Code example for NamespaceContext

Methods: getNamespaceURI

0
    else 
      { 
        prefix = name.substring(0, ci);
        localName = name.substring(ci + 1);
      } 
    uri = nsctx.getNamespaceURI(prefix);
    if (Stylesheet.XSL_NS.equals(uri))
      { 
        return elements.contains(localName) ?
          Boolean.TRUE : Boolean.FALSE;
      } 
    // TODO extension elements 
    return Boolean.FALSE;
  } 
   
  public Expr clone(Object context)
  { 
    NamespaceContext n = nsctx;
    if (context instanceof NamespaceContext)
      n = (NamespaceContext) context;
    ElementAvailableFunction f = new ElementAvailableFunction(n);