if (index == 0 || name.lastIndexOf(':') != index)
if (index == 0 || index == (len - 1) || name.lastIndexOf(':') != index)
  static void checkNCName(String name, boolean xml11)  {    checkName(name, xml11);    int len = name.length();    int index = name.indexOf(':');    if (index != -1)      {        if (index == 0 || name.lastIndexOf(':') != index)          {            throw new DomDOMException(DOMException.NAMESPACE_ERR,                                      name, null, 0);          }      }  }