From 755cea3d76dd83ad228b97f1be8d4605c429bb25 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Wed, 6 Jul 2011 10:36:30 +0000 Subject: [PATCH] add empty rdf:about to rdf:Description git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143331 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hwpf/converter/FoDocumentFacade.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/converter/FoDocumentFacade.java b/src/scratchpad/src/org/apache/poi/hwpf/converter/FoDocumentFacade.java index 773f0d29c..51ae9e528 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/converter/FoDocumentFacade.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/converter/FoDocumentFacade.java @@ -222,6 +222,7 @@ public class FoDocumentFacade xmpmeta.appendChild( rdf ); propertiesRoot = document.createElementNS( NS_RDF, "rdf:Description" ); + propertiesRoot.setAttributeNS( NS_RDF, "rdf:about", "" ); rdf.appendChild( propertiesRoot ); return propertiesRoot; @@ -261,7 +262,8 @@ public class FoDocumentFacade public Element setPdfProperty( String name, String value ) { - return setProperty( "http://ns.adobe.com/pdf/1.3/", "pdf", name, value ); +// return setProperty( "http://ns.adobe.com/pdf/1.3/", "pdf", name, value ); + return null; } public void setProducer( String value ) @@ -316,7 +318,8 @@ public class FoDocumentFacade public Element setXmpProperty( String name, String value ) { - return setProperty( "http://ns.adobe.com/xap/1.0/", "xmp", name, value ); +// return setProperty( "http://ns.adobe.com/xap/1.0/", "xmp", name, value ); + return null; } }