From f7a79ddfc29bdc593213d20e176387a12550046b Mon Sep 17 00:00:00 2001 From: Steve Coffman Date: Wed, 8 Nov 2000 21:50:42 +0000 Subject: [PATCH] Markus Holman's excellent SAX2 namespaces patch. 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/org/apache/fop/apps/Driver.java b/src/org/apache/fop/apps/Driver.java index c4f61560d..d48b64306 100644 --- a/src/org/apache/fop/apps/Driver.java +++ b/src/org/apache/fop/apps/Driver.java @@ -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; } -- 2.39.5