xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sami Sundell (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (XGC-44) dc:date may not be embedded in a rdf:Seq
Date Mon, 16 Dec 2013 14:04:08 GMT

     [ https://issues.apache.org/jira/browse/XGC-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Sami Sundell updated XGC-44:

    Attachment: XMPArrays.patch

I ran into this same problem when trying to create PDF/A files with FOP; just about every
validator out there complains about the values of (at least) dc:date and dc:language, because
FOP/XMLGraphics inserts simple values instead of Seqs and Bags.

To get around it, I made this patch which simple forces the XMPSchemaAdapter to create arrays
when requested to do so. It still retains the original structure of converting simple values
when reading etc. so it's by no means perfect.

> dc:date may not be embedded in a rdf:Seq
> ----------------------------------------
>                 Key: XGC-44
>                 URL: https://issues.apache.org/jira/browse/XGC-44
>             Project: XMLGraphicsCommons
>          Issue Type: Bug
>          Components: xmp
>    Affects Versions: Trunk
>         Environment: Operating System: All
> Platform: All
>            Reporter: Jeremias Maerki
>            Assignee: XML Graphics Project Mailing List
>             Fix For: --
>         Attachments: XMPArrays.patch, XMPSpecificationPart1.pdf
> Currently, if there's only one dc:date, it is not written out as part of an rdfSeq. Various
such examples can be found on the net. However, the recent XMP spec (from 2008) is now very
explicit about that so the current behaviour needs to be changed. The old spec from September
2005 which our current code was built on was not.

This message was sent by Atlassian JIRA

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

View raw message