Bug 52649

Summary: WordToFoConverter : bad xmlns in xmpmeta element
Product: POI Reporter: Alexis ANASTASSIADES <greekananas>
Component: HWPFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal CC: greekananas
Priority: P2    
Version: 3.8-dev   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Patch: unified diff
Patch : file modified

Description Alexis ANASTASSIADES 2012-02-13 09:47:23 UTC
When I use an xsl-fo file produce with WordToFoConverter. 
There is an exception in Apache FOP because the xmlns of the xmpmeta element is not correct. 
hwpf generate :

<x:xmpmeta xmlns:x="adobe:ns:meta">
[...]
</x:xmpmeta>  

but apache FOP expect a slash ("/") at the end:

<x:xmpmeta xmlns:x="adobe:ns:meta/">
[...]
</x:xmpmeta>  

I have checked the specification (see http://partners.adobe.com/public/developer/en/xmp/sdk/XMPspecification.pdf, page 22)

I have modified FoDocumentFacade at line 245 like this :

 Element xmpmeta = document.createElementNS( "adobe:ns:meta/",
                "x:xmpmeta" );

And it works fine now.
Comment 1 Yegor Kozlov 2012-02-13 09:56:20 UTC
Can you upload your fix as a patch against trunk ? 

Yegor
Comment 2 Alexis ANASTASSIADES 2012-02-13 10:23:29 UTC
Created attachment 28311 [details]
Patch: unified diff
Comment 3 Alexis ANASTASSIADES 2012-02-13 10:26:22 UTC
Created attachment 28312 [details]
Patch : file modified
Comment 4 Alexis ANASTASSIADES 2012-02-13 10:28:43 UTC
Here there are. 

Alexis 
(In reply to comment #1)
> Can you upload your fix as a patch against trunk ? 
> 
> Yegor
Comment 5 Yegor Kozlov 2012-02-15 10:37:17 UTC
Thanks for the patch, applied in r1244429

Yegor