[jdom-commits] CVS Update: jdom/src/java/org/jdom/output
Jason Hunter
jhunter at servlets.com
Tue Aug 31 12:31:12 PDT 2004
****************************************
Date: Tue Aug 31, 2004 @12:31:12 PDT
Author:
Update of /home/cvs/jdom/src/java/org/jdom/output
In directory servlets:/tmp/cvs-serv26318
Modified Files:
DOMOutputter.java
Log Message:
Patch from Edwin Wiles (aka "spindizzy"). From his email:
--
This was a problem where DOMOutputter was adding a namespace
declaration to an element that used an attribute from a
different namespace, even though the attribute's namespace
was already "in scope".
Original XML Document:
<?xml version="1.0" encoding="UTF-8"?>
<test xmlns="http://foo/test#" xmlns:rdf="http://pseudo/rdf">
<rdf:embedded rdf:ID="1">
<rdf:type rdf:resource="sometypehere" />
<otherobject rdf:resource="resourcerefhere" />
<otherprop>propvalue</otherprop>
</rdf:embedded>
</test>
Result of Text -> JDOM -> W3C DOM -> Text (note the extra namespace):
<?xml version="1.0" encoding="UTF-8"?>
<test xmlns="http://foo/test#" xmlns:rdf="http://pseudo/rdf">
<rdf:embedded rdf:ID="1">
<rdf:type rdf:resource="sometypehere"/>
<otherobject rdf:resource="resourcerefhere" xmlns:rdf="http://pseudo/rdf"/>
<otherprop>propvalue</otherprop>
</rdf:embedded>
</test>
Edwin tested this patch and it removes the extra namespace.
-jh-
===================================================================
File: no file DOMOutputter.java Status: Needs Checkout
Working revision: 1.40 Tue Aug 31 19:31:12 2004
Repository revision: 1.40 /home/cvs/jdom/src/java/org/jdom/output/DOMOutputter.java,v
Existing Tags:
BEFORE_UNCHECKED (revision: 1.39)
jdom_1_0_b10 (revision: 1.38)
jdom_1_0_b10_rc1 (revision: 1.37)
after_rolf (revision: 1.36)
before_rolf (revision: 1.36)
jdom_1_0_b9 (revision: 1.33)
jdom_1_0_b8 (revision: 1.28)
jdom_prefilter (revision: 1.25)
jdom_1_0_b7 (revision: 1.25)
jdom_1_0_b6 (revision: 1.16)
start (revision: 1.1.1.1)
jdom (branch: 1.1.1)
More information about the jdom-commits
mailing list