xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51311] New: rdf:Description elements appear as rdf:RDF
Date Wed, 01 Jun 2011 18:10:08 GMT
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: general@xmlgraphics.apache.org
        ReportedBy: nobull67@gmail.com
    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: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org


Mime
View raw message