https://issues.apache.org/bugzilla/show_bug.cgi?id=51311
Bug #: 51311
Summary: rdf:Description elements appear as rdf:RDF
Product: XMLGraphicsCommons
Version: Trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: XMP
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
org/apache/xmlgraphics/xmp/Metadata.java contains the statement
handler.startElement(XMPConstants.RDF_NAMESPACE, "RDF", "rdf:Description",
atts);
Where handler is a org.xml.sax.ContentHandler and
org.xml.sax.ContentHandler.startElement()’s 2nd and 3rd arguments are defined
thus:
localName - The local name (without prefix), or the empty string if Namespace
processing is not being performed.
qName - The qualified name (with prefix), or the empty string if qualified
names are not available.
Thus given a 3rd argument of "rdf:Description" it is invalid for the 2nd
argument to be anything other than "" or,"RDF".
I believe this to be a simple typo that appears twice in the source file.
The conseqence of this is that (presumably dependant on what SAX XML serialiser
is used), you get <rdf:RDF> elements where you should be getting
<rdf:Description> ones.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]