[
https://issues.apache.org/jira/browse/PDFBOX-806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931189#action_12931189
]
Adam Nichols commented on PDFBOX-806:
-------------------------------------
Thanks for the patch and JUnit test. You made my job of testing and committing
very easy. :-) Committed in revision 1034104.
> Failure to extract dc:description when the value is the node text
> -----------------------------------------------------------------
>
> Key: PDFBOX-806
> URL: https://issues.apache.org/jira/browse/PDFBOX-806
> Project: PDFBox
> Issue Type: Bug
> Components: JempBox
> Affects Versions: 1.2.1
> Reporter: Staffan Olsson
> Attachments: JempboxTest.java, PDFBOX-806.patch
>
>
> I can not get the dc:description from the following xmpmeta:
> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0">
> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
> <rdf:Description rdf:about=""
> xmlns:exif="http://ns.adobe.com/exif/1.0/">
> <exif:UserComment>exif</exif:UserComment>
> </rdf:Description>
> <rdf:Description rdf:about=""
> xmlns:dc="http://purl.org/dc/elements/1.1/">
> <dc:description>from XnViewMP 0.26</dc:description>
> </rdf:Description>
> </rdf:RDF>
> </x:xmpmeta>
> But it works from this:
> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2">
> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
> <rdf:Description rdf:about=""
> xmlns:dc="http://purl.org/dc/elements/1.1/">
> <dc:description>
> <rdf:Alt>
> <rdf:li xml:lang="x-default">dc:description</rdf:li>
> </rdf:Alt>
> </dc:description>
> </rdf:Description>
> </rdf:RDF>
> </x:xmpmeta>
> Both of them are valid according to http://www.w3.org/RDF/Validator/. My
> interpretation of http://dublincore.org/documents/dcmes-xml/ is that the
> first format should be ok for Dublin Core too.
> See attached unit test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.