src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/dom/AdaptiveResultTreeImpl.java
changeset 48697 0474300affbd
parent 47216 71c04702a3d5
equal deleted inserted replaced
48696:917868f73209 48697:0474300affbd
   568     private void maybeEmitStartElement() throws SAXException
   568     private void maybeEmitStartElement() throws SAXException
   569     {
   569     {
   570         if (_openElementName != null) {
   570         if (_openElementName != null) {
   571 
   571 
   572            int index;
   572            int index;
   573            if ((index =_openElementName.indexOf(":")) < 0)
   573            if ((index =_openElementName.indexOf(':')) < 0)
   574                _dom.startElement(null, _openElementName, _openElementName, _attributes);
   574                _dom.startElement(null, _openElementName, _openElementName, _attributes);
   575            else {
   575            else {
   576                 String uri =_dom.getNamespaceURI(_openElementName.substring(0,index));
   576                 String uri =_dom.getNamespaceURI(_openElementName.substring(0,index));
   577                 _dom.startElement(uri, _openElementName.substring(index+1), _openElementName, _attributes);
   577                 _dom.startElement(uri, _openElementName.substring(index+1), _openElementName, _attributes);
   578            }
   578            }
   680     }
   680     }
   681 
   681 
   682     public void addAttribute(String qName, String value)
   682     public void addAttribute(String qName, String value)
   683     {
   683     {
   684         // "prefix:localpart" or "localpart"
   684         // "prefix:localpart" or "localpart"
   685         int colonpos = qName.indexOf(":");
   685         int colonpos = qName.indexOf(':');
   686         String uri = EMPTY_STRING;
   686         String uri = EMPTY_STRING;
   687         String localName = qName;
   687         String localName = qName;
   688         if (colonpos >0)
   688         if (colonpos >0)
   689         {
   689         {
   690             String prefix = qName.substring(0, colonpos);
   690             String prefix = qName.substring(0, colonpos);