code: public void namespaceAfterStartElement(
          final String prefix,
          final String uri)
          throws SAXException
      {
  
          // hack for XSLTC with finding URI for default namespace
          if (m_elemContext.m_elementURI == null)
          {
              String prefix1 = getPrefixPart(m_elemContext.m_elementName);
              if (prefix1 == null && EMPTYSTRING.equals(prefix))
              {
                  // the elements URI is not known yet, and it
                  // doesn't have a prefix, and we are currently
                  // setting the uri for prefix "", so we have
                  // the uri for the element... lets remember it
                  m_elemContext.m_elementURI = uri;
              }
          }            
          startPrefixMapping(prefix,uri,false);
          return;
  
      }
docs: This method is used to notify the serializer of a namespace mapping (or node)
  that applies to the current element whose startElement() call has already been seen.
  The official SAX startPrefixMapping(prefix,uri) is to define a mapping for a child
  element that is soon to be seen with a startElement() call. The official SAX call
  does not apply to the current element, hence the reason for this method.