[redland-dev] [Raptor RDF Syntax Library 0000554]: RDF/XML parser does not canonicalize attribute order in XMLLiterals

Mantis Bug Tracker mantis-bug-sender at librdf.org
Wed Oct 9 04:04:51 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=554 
====================================================================== 
Reported By:                csarven
Assigned To:                
====================================================================== 
Project:                    Raptor RDF Syntax Library
Issue ID:                   554
Category:                   api
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Syntax Name:                 
====================================================================== 
Date Submitted:             2013-10-09 08:04
Last Modified:              2013-10-09 08:04
====================================================================== 
Summary:                    RDF/XML parser does not canonicalize attribute order
in XMLLiterals
Description: 
Given foo.rdf:

<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
   <rdf:Description rdf:about="http://fusepool.info/doc/pmc/2751467">
      <dcterms:description rdf:parseType="Literal">
         <div xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
            <p b="foo" a="bar">123</p>
         </div>
      </dcterms:description>
   </rdf:Description>
</rdf:RDF>

$ rapper -i rdflxml foo.rdf

<http://fusepool.info/doc/pmc/2751467> <http://purl.org/dc/terms/description>
"\n         <div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n      
     <p b=\"foo\" a=\"bar\">123</p>\n         </div>\n     
"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .

The expected output is:

<http://fusepool.info/doc/pmc/2751467> <http://purl.org/dc/terms/description>
"\n         <div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n      
     <p a=\"bar\" b=\"foo\">123</p>\n         </div>\n     
"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-10-09 08:04 csarven        New Issue                                    
======================================================================



More information about the redland-dev mailing list