[
https://issues.apache.org/jira/browse/PDFBOX-6133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18047900#comment-18047900
]
ASF subversion and git services commented on PDFBOX-6133:
---------------------------------------------------------
Commit 1930925 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1930925 ]
PDFBOX-6133: refactor
> XmpParsingException: Property 'CountryCode' not defined in
> http://www.epo.org/patent-bibliographic-data/1.0/
> ------------------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-6133
> URL: https://issues.apache.org/jira/browse/PDFBOX-6133
> Project: PDFBox
> Issue Type: Bug
> Components: XmpBox
> Affects Versions: 2.0.35, 3.0.6 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.36, 3.0.7 PDFBox, 4.0.0
>
> Attachments: PDFBOX-6133-0064638.pdf, PDFBOX-6133-0064638.xml
>
>
> The attached file, which I had thought to be a test case for PDFBOX-6131)
> validates with PDFLib and VeraPDF but fails in xmpbox. I suspect that this is
> because the URI is used several times.
> Some debug output in checkPropertyDefinition() for later:
> {noformat}
> t1 prop (prefix, local, ns) : patent, CountryCode,
> http://www.epo.org/patent-bibliographic-data/1.0/
> t1 isDefinedTypeNamespace : true
> t1 isDefinedSchema : true
> t1 isDefinedNamespace : true
> t1 containsNamespace : true
> {noformat}
> In {{getSpecifiedPropertyType()}}, {{getSchemaFactory()}} returns something,
> but {{factory.getPropertyType(name.getLocalPart())}} doesn't.
> Changing that doesn't make it better, because definedStructuredNamespaces has
> only 1 entry with the prefix "Bookmark", but there are more and the type is
> nested.
> {{tm.addToDefinedStructuredTypes()}} in {{populatePDFAType()}} is called
> twice, so the second overwrites the first:
> ttype: DocId, tns: http://www.epo.org/patent-bibliographic-data/1.0/, pm:
> [Number, CorrectionCode, CountryCode, KindCode, Date]
> ttype: Bookmark, tns: http://www.epo.org/patent-bibliographic-data/1.0/, pm:
> [StartPage, DocumentSection, NumberOfPages]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]