xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r663292 - in /xmlgraphics/commons/trunk: src/java/org/apache/xmlgraphics/xmp/Metadata.java status.xml
Date Wed, 04 Jun 2008 16:18:38 GMT
Author: jeremias
Date: Wed Jun  4 09:18:38 2008
New Revision: 663292

URL: http://svn.apache.org/viewvc?rev=663292&view=rev
Log:
Bugfix: Added missing start/endPrefixMapping() calls when serializing XMP packets.

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/Metadata.java
    xmlgraphics/commons/trunk/status.xml

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/Metadata.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/Metadata.java?rev=663292&r1=663291&r2=663292&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/Metadata.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/Metadata.java Wed Jun  4
09:18:38 2008
@@ -91,7 +91,9 @@
     /** {@inheritDoc} */
     public void toSAX(ContentHandler handler) throws SAXException {
         AttributesImpl atts = new AttributesImpl();
+        handler.startPrefixMapping("x", XMPConstants.XMP_NAMESPACE);
         handler.startElement(XMPConstants.XMP_NAMESPACE, "xmpmeta", "x:xmpmeta", atts);
+        handler.startPrefixMapping("rdf", XMPConstants.RDF_NAMESPACE);
         handler.startElement(XMPConstants.RDF_NAMESPACE, "RDF", "rdf:RDF", atts);
         //Get all property namespaces
         Set namespaces = new java.util.HashSet();
@@ -141,7 +143,9 @@
         }
         
         handler.endElement(XMPConstants.RDF_NAMESPACE, "RDF", "rdf:RDF");
+        handler.endPrefixMapping("rdf");
         handler.endElement(XMPConstants.XMP_NAMESPACE, "xmpmeta", "x:xmpmeta");
+        handler.endPrefixMapping("x");
     }
 
 }

Modified: xmlgraphics/commons/trunk/status.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/status.xml?rev=663292&r1=663291&r2=663292&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/status.xml (original)
+++ xmlgraphics/commons/trunk/status.xml Wed Jun  4 09:18:38 2008
@@ -39,10 +39,11 @@
     <context id="Docs" title="Changes to Documentation"/>
   </contexts>
   <changes>
-    <!--
     <release version="Trunk" date="n/a">
+      <action context="Code" dev="JM" type="fix">
+        Bugfix: Added missing start/endPrefixMapping() calls when serializing XMP packets.
+      </action>
     </release>
-    -->
     <release version="1.3.1" date="9 May 2008">
       <action context="Code" dev="JM" type="fix" fixes-bug="44902">
         Made file URLs with a host (as happens when using UNC paths) work when loading images.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message