[ https://issues.apache.org/jira/browse/PDFBOX-2897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14637594#comment-14637594 ]
Maruan Sahyoun commented on PDFBOX-2897: ---------------------------------------- For the two errors reported above {quote} 'dc:li' is not allowed in arrays. The elements must be rdf:li or rdf:_N, where N is a positive number. {quote} This for sure should be flagged {quote} There is only one RDF resource allowed in XMP. {quote} This one might be flagged but the XMP 2004 spec doesn't explicitly call for it but one might interpret it to be implied. [~tilman] [~talli...@apache.org] can we move that to 2.1.0 or shall it be fixed for 2.0.0? > Preflight not flagging bad xml generated by XMPBox for dc:title > --------------------------------------------------------------- > > Key: PDFBOX-2897 > URL: https://issues.apache.org/jira/browse/PDFBOX-2897 > Project: PDFBox > Issue Type: Bug > Components: Preflight, XmpBox > Affects Versions: 2.0.0 > Reporter: Tim Allison > Priority: Minor > Attachments: PDFBOX-2897-PDFA-BadXMP.pdf > > > [~tilman] asked that I open two separate issues for the finding in TIKA-1678 > that XMPBox is not generating a valid dc:title entry in the XMP. This issue > is meant to track preflight's failure to detect this problem. > What PDFBox does: > {code} > <dc:title> > <rdf:Alt> > <dc:li>this is the title</dc:li> > </rdf:Alt> > </dc:title> > {code} > It should be: > {code} > <dc:title> > <rdf:Alt> > <rdf:li xml:lang="x-default">this is the title</rdf:li> > </rdf:Alt> > </dc:title> > {code} > Error message from the PDF-Tools validator: > {quote} > 'dc:li' is not allowed in arrays. The elements must be rdf:li or rdf:_N, > where N is a positive number. > There is only one RDF resource allowed in XMP. > {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org