]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Markus Holman's excellent SAX2 namespaces patch.
authorSteve Coffman <gears@apache.org>
Wed, 8 Nov 2000 21:50:42 +0000 (21:50 +0000)
committerSteve Coffman <gears@apache.org>
Wed, 8 Nov 2000 21:50:42 +0000 (21:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193750 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/apps/Driver.java

index c4f61560d2742914c340562ae3a276d5fb3e2a3a..d48b64306214f6e311c25de1c166fd9e8e65c902 100644 (file)
@@ -318,14 +318,14 @@ public class Driver {
                    currentAtts.clear();
                    for (int i = map.getLength() - 1; i >= 0; i--) {
                        Attr att = (Attr)map.item(i);
-                       currentAtts.addAttribute("",
+                       currentAtts.addAttribute(att.getNamespaceURI(),
+                         att.getLocalName(),
                          att.getName(),
-                         "",
                          "CDATA",
                          att.getValue());
                    }
                    this.treeBuilder.startElement(
-                       "", currentNode.getNodeName(), "", currentAtts);
+                       currentNode.getNamespaceURI(), currentNode.getLocalName(), currentNode.getNodeName(), currentAtts);
                    break;
                }
                
@@ -342,7 +342,7 @@ public class Driver {
                        break;
                    case Node.ELEMENT_NODE:
                        this.treeBuilder.endElement(
-                           "", currentNode.getNodeName(), "" );
+                           currentNode.getNamespaceURI(), currentNode.getLocalName(), currentNode.getNodeName());
                        break;
                    }