Bug 52649 - WordToFoConverter : bad xmlns in xmpmeta element
Summary: WordToFoConverter : bad xmlns in xmpmeta element
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HWPF (show other bugs)
Version: 3.8-dev
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-13 09:47 UTC by Alexis ANASTASSIADES
Modified: 2012-02-15 10:37 UTC (History)
1 user (show)



Attachments
Patch: unified diff (644 bytes, patch)
2012-02-13 10:23 UTC, Alexis ANASTASSIADES
Details | Diff
Patch : file modified (2.46 KB, patch)
2012-02-13 10:26 UTC, Alexis ANASTASSIADES
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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