src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/dom/AdaptiveResultTreeImpl.java
equal
deleted
inserted
replaced
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); |