ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XMP metadata schema yields invalid PDF/A
@ 2022-02-04 18:29 Karl Pettersson via ntg-context
  2022-02-04 21:25 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: Karl Pettersson via ntg-context @ 2022-02-04 18:29 UTC (permalink / raw)
  To: ntg-context; +Cc: Karl Pettersson

Hi

PDF/A files generated using ConTeXt fail validation with veraPDF, and
the reason seems to be that the dc:description metadata is defined with
the wrong type in the embedded XMP extension schema.

https://tex.stackexchange.com/questions/632380/generate-pdf-a-with-context

https://github.com/veraPDF/veraPDF-library/issues/1224

I can reproduce the problem using TeX Live 2021 (MkIV 2021.03.05). The
definition seems to be controlled by this code.

https://source.contextgarden.net/tex/context/base/mkiv/lpdf-pua.xml?search=rdf#l81

Regards

-- 
Karl Pettersson
Uppsala, Sweden

https://static-dust.klpn.se/
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: XMP metadata schema yields invalid PDF/A
  2022-02-04 18:29 XMP metadata schema yields invalid PDF/A Karl Pettersson via ntg-context
@ 2022-02-04 21:25 ` Hans Hagen via ntg-context
  2022-02-04 21:36   ` luigi scarso via ntg-context
  2022-02-04 22:11   ` Karl Pettersson via ntg-context
  0 siblings, 2 replies; 12+ messages in thread
From: Hans Hagen via ntg-context @ 2022-02-04 21:25 UTC (permalink / raw)
  To: Karl Pettersson via ntg-context; +Cc: Hans Hagen

On 2/4/2022 7:29 PM, Karl Pettersson via ntg-context wrote:
> Hi
> 
> PDF/A files generated using ConTeXt fail validation with veraPDF, and
> the reason seems to be that the dc:description metadata is defined with
> the wrong type in the embedded XMP extension schema.
> 
> https://tex.stackexchange.com/questions/632380/generate-pdf-a-with-context
> 
> https://github.com/veraPDF/veraPDF-library/issues/1224
> 
> I can reproduce the problem using TeX Live 2021 (MkIV 2021.03.05). The
> definition seems to be controlled by this code.
> 
> https://source.contextgarden.net/tex/context/base/mkiv/lpdf-pua.xml?search=rdf#l81
so "dc:description" is not permitted? it is mentioned in

https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/description

(btw it never failed before)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: XMP metadata schema yields invalid PDF/A
  2022-02-04 21:25 ` Hans Hagen via ntg-context
@ 2022-02-04 21:36   ` luigi scarso via ntg-context
  2022-02-04 22:11   ` Karl Pettersson via ntg-context
  1 sibling, 0 replies; 12+ messages in thread
From: luigi scarso via ntg-context @ 2022-02-04 21:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: luigi scarso


[-- Attachment #1.1: Type: text/plain, Size: 1235 bytes --]

On Fri, Feb 4, 2022 at 10:26 PM Hans Hagen via ntg-context <
ntg-context@ntg.nl> wrote:

> On 2/4/2022 7:29 PM, Karl Pettersson via ntg-context wrote:
> > Hi
> >
> > PDF/A files generated using ConTeXt fail validation with veraPDF, and
> > the reason seems to be that the dc:description metadata is defined with
> > the wrong type in the embedded XMP extension schema.
> >
> >
> https://tex.stackexchange.com/questions/632380/generate-pdf-a-with-context
> >
> > https://github.com/veraPDF/veraPDF-library/issues/1224
> >
> > I can reproduce the problem using TeX Live 2021 (MkIV 2021.03.05). The
> > definition seems to be controlled by this code.
> >
> >
> https://source.contextgarden.net/tex/context/base/mkiv/lpdf-pua.xml?search=rdf#l81



>
> so "dc:description" is not permitted? it is mentioned in
>
>
> https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/description
>
>

and also in XMPSpecificationPart1.pdf

https://github.com/adobe/XMP-Toolkit-SDK/tree/main/docs

 dc:description

Language
Alternative

DCMI definition: An account of the resource.
XMP addition: XMP usage is a list of textual descriptions of the content of
the
resource, given in various languages.


--
luigi

[-- Attachment #1.2: Type: text/html, Size: 2631 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: XMP metadata schema yields invalid PDF/A
  2022-02-04 21:25 ` Hans Hagen via ntg-context
  2022-02-04 21:36   ` luigi scarso via ntg-context
@ 2022-02-04 22:11   ` Karl Pettersson via ntg-context
  2022-02-04 23:37     ` luigi scarso via ntg-context
  1 sibling, 1 reply; 12+ messages in thread
From: Karl Pettersson via ntg-context @ 2022-02-04 22:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Karl Pettersson

On Fri, Feb 04, 2022 at 10:25:27PM +0100, Hans Hagen via ntg-context wrote:
> On 2/4/2022 7:29 PM, Karl Pettersson via ntg-context wrote:
> > Hi
> > 
> > PDF/A files generated using ConTeXt fail validation with veraPDF, and
> > the reason seems to be that the dc:description metadata is defined with
> > the wrong type in the embedded XMP extension schema.
> > 
> > https://tex.stackexchange.com/questions/632380/generate-pdf-a-with-context
> > 
> > https://github.com/veraPDF/veraPDF-library/issues/1224
> > 
> > I can reproduce the problem using TeX Live 2021 (MkIV 2021.03.05). The
> > definition seems to be controlled by this code.
> > 
> > https://source.contextgarden.net/tex/context/base/mkiv/lpdf-pua.xml?search=rdf#l81
> so "dc:description" is not permitted? it is mentioned in
> 
> https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/description
> 
> (btw it never failed before)

The description element is permitted, but the problem seems to be that
its valueType is defined as Text in the embedded schema, while the
metadata element in the PDF has an embedded <rdf:Alt><rdf:li
xml:lang="x-default"> structure.

https://github.com/veraPDF/veraPDF-library/issues/1224#issuecomment-1029932963

(I suppose the reference to "title" in the issue comment should be "description".)

Validating with veraPDF <1.20 does not raise the error. The validation
seems to have changed for redefined types in that version.

https://github.com/veraPDF/veraPDF-library/blob/integration/RELEASENOTES.md#validation

> 
> Hans
> 
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

-- 
Karl Pettersson
Uppsala, Sweden

https://static-dust.klpn.se/
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: XMP metadata schema yields invalid PDF/A
  2022-02-04 22:11   ` Karl Pettersson via ntg-context
@ 2022-02-04 23:37     ` luigi scarso via ntg-context
  2022-02-05  8:48       ` Karl Pettersson via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: luigi scarso via ntg-context @ 2022-02-04 23:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: luigi scarso


[-- Attachment #1.1: Type: text/plain, Size: 1934 bytes --]

On Fri, Feb 4, 2022 at 11:11 PM Karl Pettersson via ntg-context <
ntg-context@ntg.nl> wrote:

> On Fri, Feb 04, 2022 at 10:25:27PM +0100, Hans Hagen via ntg-context wrote:
> > On 2/4/2022 7:29 PM, Karl Pettersson via ntg-context wrote:
> > > Hi
> > >
> > > PDF/A files generated using ConTeXt fail validation with veraPDF, and
> > > the reason seems to be that the dc:description metadata is defined with
> > > the wrong type in the embedded XMP extension schema.
> > >
> > >
> https://tex.stackexchange.com/questions/632380/generate-pdf-a-with-context
> > >
> > > https://github.com/veraPDF/veraPDF-library/issues/1224
> > >
> > > I can reproduce the problem using TeX Live 2021 (MkIV 2021.03.05). The
> > > definition seems to be controlled by this code.
> > >
> > >
> https://source.contextgarden.net/tex/context/base/mkiv/lpdf-pua.xml?search=rdf#l81
> > so "dc:description" is not permitted? it is mentioned in
> >
> >
> https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/description
> >
> > (btw it never failed before)
>
> The description element is permitted, but the problem seems to be that
> its valueType is defined as Text in the embedded schema, while the
> metadata element in the PDF has an embedded <rdf:Alt><rdf:li
> xml:lang="x-default"> structure.
>
>
> https://github.com/veraPDF/veraPDF-library/issues/1224#issuecomment-1029932963
>
> (I suppose the reference to "title" in the issue comment should be
> "description".)
>
> Validating with veraPDF <1.20 does not raise the error. The validation
> seems to have changed for redefined types in that version.
>
>
> https://github.com/veraPDF/veraPDF-library/blob/integration/RELEASENOTES.md#validation


I am missing something here... true
<dc:description>FOO</dc:description>
makes a valid pdf 3a with verapdf 1.20.1.
But dc:description is like dc:title, so where we are redefining
dc:description as Text ?

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 3393 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: XMP metadata schema yields invalid PDF/A
  2022-02-04 23:37     ` luigi scarso via ntg-context
@ 2022-02-05  8:48       ` Karl Pettersson via ntg-context
  2022-02-05  8:59         ` luigi scarso via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: Karl Pettersson via ntg-context @ 2022-02-05  8:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Karl Pettersson

[-- Attachment #1: Type: text/plain, Size: 3020 bytes --]

On Sat, Feb 05, 2022 at 12:37:44AM +0100, luigi scarso via ntg-context wrote:
> On Fri, Feb 4, 2022 at 11:11 PM Karl Pettersson via ntg-context <
> ntg-context@ntg.nl> wrote:
> 
> > On Fri, Feb 04, 2022 at 10:25:27PM +0100, Hans Hagen via ntg-context wrote:
> > > On 2/4/2022 7:29 PM, Karl Pettersson via ntg-context wrote:
> > > > Hi
> > > >
> > > > PDF/A files generated using ConTeXt fail validation with veraPDF, and
> > > > the reason seems to be that the dc:description metadata is defined with
> > > > the wrong type in the embedded XMP extension schema.
> > > >
> > > >
> > https://tex.stackexchange.com/questions/632380/generate-pdf-a-with-context
> > > >
> > > > https://github.com/veraPDF/veraPDF-library/issues/1224
> > > >
> > > > I can reproduce the problem using TeX Live 2021 (MkIV 2021.03.05). The
> > > > definition seems to be controlled by this code.
> > > >
> > > >
> > https://source.contextgarden.net/tex/context/base/mkiv/lpdf-pua.xml?search=rdf#l81
> > > so "dc:description" is not permitted? it is mentioned in
> > >
> > >
> > https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/description
> > >
> > > (btw it never failed before)
> >
> > The description element is permitted, but the problem seems to be that
> > its valueType is defined as Text in the embedded schema, while the
> > metadata element in the PDF has an embedded <rdf:Alt><rdf:li
> > xml:lang="x-default"> structure.
> >
> >
> > https://github.com/veraPDF/veraPDF-library/issues/1224#issuecomment-1029932963
> >
> > (I suppose the reference to "title" in the issue comment should be
> > "description".)
> >
> > Validating with veraPDF <1.20 does not raise the error. The validation
> > seems to have changed for redefined types in that version.
> >
> >
> > https://github.com/veraPDF/veraPDF-library/blob/integration/RELEASENOTES.md#validation
> 
> 
> I am missing something here... true
> <dc:description>FOO</dc:description>
> makes a valid pdf 3a with verapdf 1.20.1.
> But dc:description is like dc:title, so where we are redefining
> dc:description as Text ?
> 
> -- 
> luigi

Attach metadata xml for the non-validating and validating example
(extraced with `pdfinfo -meta | xmllint format -`) in the
Github issue.

Here is a reference to the description element. Note that only
description seems to be redefined, not title.

https://source.contextgarden.net/tex/context/base/mkiv/lpdf-pua.xml#l81

> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


-- 
Karl Pettersson
Uppsala, Sweden

https://static-dust.klpn.se/

[-- Attachment #2: test.xml --]
[-- Type: text/xml, Size: 12572 bytes --]

<?xml version="1.0"?>
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/">
  <!-- http://www.pdfa.org/wp-content/uploads/2011/08/tn0008_predefined_xmp_properties_in_pdfa-1_2008-03-20.pdf -->
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:about="">
      <dc:format>application/pdf</dc:format>
      <dc:creator>
        <rdf:Seq>
          <rdf:li xml:lang="x-default">AUTHOR</rdf:li>
        </rdf:Seq>
      </dc:creator>
      <dc:description>
        <rdf:Alt>
          <rdf:li xml:lang="x-default"/>
        </rdf:Alt>
      </dc:description>
      <dc:title>
        <rdf:Alt>
          <rdf:li xml:lang="x-default">TITLE</rdf:li>
        </rdf:Alt>
      </dc:title>
    </rdf:Description>
    <rdf:Description xmlns:pdfx="http://ns.adobe.com/pdfx/1.3/" rdf:about="">
      <pdfx:ID>out | 2022-02-02T21:34:48+01:00</pdfx:ID>
      <pdfx:ConTeXt.Jobname>out</pdfx:ConTeXt.Jobname>
      <pdfx:ConTeXt.Time>2022-02-02 21:34</pdfx:ConTeXt.Time>
      <pdfx:ConTeXt.Url>www.pragma-ade.com</pdfx:ConTeXt.Url>
      <pdfx:ConTeXt.Support>contextgarden.net</pdfx:ConTeXt.Support>
      <pdfx:ConTeXt.Version>2019.03.21 21:39</pdfx:ConTeXt.Version>
      <pdfx:ConTeXt.LMTX/>
      <pdfx:TeX.Support>tug.org</pdfx:TeX.Support>
      <pdfx:LuaTeX.Version>1.10</pdfx:LuaTeX.Version>
      <pdfx:LuaTeX.Functionality>7127</pdfx:LuaTeX.Functionality>
      <pdfx:LuaTeX.LuaVersion>5.3</pdfx:LuaTeX.LuaVersion>
      <pdfx:LuaTeX.Platform>linux-64</pdfx:LuaTeX.Platform>
    </rdf:Description>
    <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
      <xmp:CreateDate>2022-02-02T21:34:48+01:00</xmp:CreateDate>
      <xmp:CreatorTool>LuaTeX 1.10 7127 + ConTeXt MkIV 2019.03.21 21:39</xmp:CreatorTool>
      <xmp:ModifyDate>2022-02-02T21:34:48+01:00</xmp:ModifyDate>
      <xmp:MetadataDate>2022-02-02T21:34:48+01:00</xmp:MetadataDate>
    </rdf:Description>
    <rdf:Description xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
      <pdf:Keywords/>
      <pdf:Producer>LuaTeX-1.10</pdf:Producer>
      <pdf:Trapped>False</pdf:Trapped>
    </rdf:Description>
    <rdf:Description xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" rdf:about="">
      <xmpMM:DocumentID>uuid:77baf08a-41c6-87cb-47d0-807f764f5064</xmpMM:DocumentID>
      <xmpMM:InstanceID>uuid:fe6c773e-42b0-864d-4c63-da5c57ec1a40</xmpMM:InstanceID>
    </rdf:Description>
    <rdf:Description xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/" xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#" xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#" rdf:about="">
      <pdfaExtension:schemas>
        <rdf:Bag>
          <rdf:li rdf:parseType="Resource">
            <pdfaSchema:namespaceURI>http://ns.adobe.com/pdf/1.3/</pdfaSchema:namespaceURI>
            <pdfaSchema:prefix>pdf</pdfaSchema:prefix>
            <pdfaSchema:schema>Adobe PDF Schema</pdfaSchema:schema>
            <pdfaSchema:property>
              <rdf:Seq>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>internal</pdfaProperty:category>
                  <pdfaProperty:description>A name object indicating whether the document has been modified to include trapping information</pdfaProperty:description>
                  <pdfaProperty:name>Trapped</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
              </rdf:Seq>
            </pdfaSchema:property>
            <pdfaSchema:valueType>
              <rdf:Seq/>
            </pdfaSchema:valueType>
          </rdf:li>
          <rdf:li rdf:parseType="Resource">
            <pdfaSchema:namespaceURI>http://purl.org/dc/elements/1.1/</pdfaSchema:namespaceURI>
            <pdfaSchema:prefix>pdf</pdfaSchema:prefix>
            <pdfaSchema:schema>Dubline Core Schema</pdfaSchema:schema>
            <pdfaSchema:property>
              <rdf:Seq>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>internal</pdfaProperty:category>
                  <pdfaProperty:description>Subject in Document Properties</pdfaProperty:description>
                  <pdfaProperty:name>description</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
              </rdf:Seq>
            </pdfaSchema:property>
            <pdfaSchema:valueType>
              <rdf:Seq/>
            </pdfaSchema:valueType>
          </rdf:li>
          <rdf:li rdf:parseType="Resource">
            <pdfaSchema:namespaceURI>http://ns.adobe.com/pdfx/1.3/</pdfaSchema:namespaceURI>
            <pdfaSchema:prefix>pdfx</pdfaSchema:prefix>
            <pdfaSchema:schema>PDF/X ID Schema</pdfaSchema:schema>
            <pdfaSchema:property>
              <rdf:Seq>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>Name of the ConTeXt job</pdfaProperty:description>
                  <pdfaProperty:name>ConTeXt.Jobname</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>Time stamp of ConTeXt version</pdfaProperty:description>
                  <pdfaProperty:name>ConTeXt.Time</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>ConTeXt website</pdfaProperty:description>
                  <pdfaProperty:name>ConTeXt.Url</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>ConTeXt support</pdfaProperty:description>
                  <pdfaProperty:name>ConTeXt.Support</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>ConTeXt version</pdfaProperty:description>
                  <pdfaProperty:name>ConTeXt.Version</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>ConTeXt LMTX version</pdfaProperty:description>
                  <pdfaProperty:name>ConTeXt.LMTX</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>TeX support</pdfaProperty:description>
                  <pdfaProperty:name>TeX.Support</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>LuaTeX version</pdfaProperty:description>
                  <pdfaProperty:name>LuaTeX.Version</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>LuaTeX functionality</pdfaProperty:description>
                  <pdfaProperty:name>LuaTeX.Functionality</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>LuaTeX Lua version</pdfaProperty:description>
                  <pdfaProperty:name>LuaTeX.LuaVersion</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>LuaTeX platform</pdfaProperty:description>
                  <pdfaProperty:name>LuaTeX.Platform</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>Document identifier</pdfaProperty:description>
                  <pdfaProperty:name>ID</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
              </rdf:Seq>
            </pdfaSchema:property>
            <pdfaSchema:valueType>
              <rdf:Seq/>
            </pdfaSchema:valueType>
          </rdf:li>
          <rdf:li rdf:parseType="Resource">
            <pdfaSchema:namespaceURI>http://ns.adobe.com/xap/1.0/mm/</pdfaSchema:namespaceURI>
            <pdfaSchema:prefix>xmpMM</pdfaSchema:prefix>
            <pdfaSchema:schema>XMP Media Management Schema</pdfaSchema:schema>
            <pdfaSchema:property>
              <rdf:Seq>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>internal</pdfaProperty:category>
                  <pdfaProperty:description>UUID based identifier for specific incarnation of a document</pdfaProperty:description>
                  <pdfaProperty:name>InstanceID</pdfaProperty:name>
                  <pdfaProperty:valueType>URI</pdfaProperty:valueType>
                </rdf:li>
              </rdf:Seq>
            </pdfaSchema:property>
            <pdfaSchema:valueType>
              <rdf:Seq/>
            </pdfaSchema:valueType>
          </rdf:li>
          <rdf:li rdf:parseType="Resource">
            <pdfaSchema:namespaceURI>http://www.aiim.org/pdfa/ns/id/</pdfaSchema:namespaceURI>
            <pdfaSchema:prefix>pdfaid</pdfaSchema:prefix>
            <pdfaSchema:schema>PDF/A ID Schema</pdfaSchema:schema>
            <pdfaSchema:property>
              <rdf:Seq>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>internal</pdfaProperty:category>
                  <pdfaProperty:description>Part of PDF/A standard</pdfaProperty:description>
                  <pdfaProperty:name>part</pdfaProperty:name>
                  <pdfaProperty:valueType>Integer</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>internal</pdfaProperty:category>
                  <pdfaProperty:description>Amendment of PDF/A standard</pdfaProperty:description>
                  <pdfaProperty:name>amd</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>internal</pdfaProperty:category>
                  <pdfaProperty:description>Conformance level of PDF/A standard</pdfaProperty:description>
                  <pdfaProperty:name>conformance</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
              </rdf:Seq>
            </pdfaSchema:property>
            <pdfaSchema:valueType>
              <rdf:Seq/>
            </pdfaSchema:valueType>
          </rdf:li>
        </rdf:Bag>
      </pdfaExtension:schemas>
    </rdf:Description>
    <rdf:Description xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/" rdf:about="">
      <pdfaid:part>3</pdfaid:part>
      <pdfaid:conformance>A</pdfaid:conformance>
    </rdf:Description>
  </rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>

[-- Attachment #3: test-fixed.xml --]
[-- Type: text/xml, Size: 10782 bytes --]

<?xml version="1.0"?>
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 7.1-c000 79.425dc87, 2021/10/27-16:20:32        ">
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pdfx="http://ns.adobe.com/pdfx/1.3/" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/" xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/" xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#" xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#" rdf:about="">
      <dc:format>application/pdf</dc:format>
      <dc:creator>
        <rdf:Seq>
          <rdf:li xml:lang="x-default">AUTHOR</rdf:li>
        </rdf:Seq>
      </dc:creator>
      <dc:title>
        <rdf:Alt>
          <rdf:li xml:lang="x-default">TITLE</rdf:li>
        </rdf:Alt>
      </dc:title>
      <pdfx:ID>out | 2022-02-02T21:34:48+01:00</pdfx:ID>
      <pdfx:ConTeXt.Jobname>out</pdfx:ConTeXt.Jobname>
      <pdfx:ConTeXt.Time>2022-02-02 21:34</pdfx:ConTeXt.Time>
      <pdfx:ConTeXt.Url>www.pragma-ade.com</pdfx:ConTeXt.Url>
      <pdfx:ConTeXt.Support>contextgarden.net</pdfx:ConTeXt.Support>
      <pdfx:ConTeXt.Version>2019.03.21 21:39</pdfx:ConTeXt.Version>
      <pdfx:ConTeXt.LMTX/>
      <pdfx:TeX.Support>tug.org</pdfx:TeX.Support>
      <pdfx:LuaTeX.Version>1.10</pdfx:LuaTeX.Version>
      <pdfx:LuaTeX.Functionality>7127</pdfx:LuaTeX.Functionality>
      <pdfx:LuaTeX.LuaVersion>5.3</pdfx:LuaTeX.LuaVersion>
      <pdfx:LuaTeX.Platform>linux-64</pdfx:LuaTeX.Platform>
      <xmp:CreateDate>2022-02-02T21:34:48+01:00</xmp:CreateDate>
      <xmp:CreatorTool>LuaTeX 1.10 7127 + ConTeXt MkIV 2019.03.21 21:39</xmp:CreatorTool>
      <xmp:ModifyDate>2022-02-04T15:11:05+03:00</xmp:ModifyDate>
      <xmp:MetadataDate>2022-02-04T15:11:05+03:00</xmp:MetadataDate>
      <pdf:Producer>LuaTeX-1.10</pdf:Producer>
      <pdf:Trapped>Unknown</pdf:Trapped>
      <pdf:Keywords/>
      <xmpMM:DocumentID>uuid:77baf08a-41c6-87cb-47d0-807f764f5064</xmpMM:DocumentID>
      <xmpMM:InstanceID>uuid:00ca627f-3d6c-46bd-8c42-793d2c04eb4d</xmpMM:InstanceID>
      <pdfaid:part>3</pdfaid:part>
      <pdfaid:conformance>A</pdfaid:conformance>
      <pdfaExtension:schemas>
        <rdf:Bag>
          <rdf:li rdf:parseType="Resource">
            <pdfaSchema:namespaceURI>http://ns.adobe.com/pdf/1.3/</pdfaSchema:namespaceURI>
            <pdfaSchema:prefix>pdf</pdfaSchema:prefix>
            <pdfaSchema:schema>Adobe PDF Schema</pdfaSchema:schema>
            <pdfaSchema:property>
              <rdf:Seq>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>internal</pdfaProperty:category>
                  <pdfaProperty:description>A name object indicating whether the document has been modified to include trapping information</pdfaProperty:description>
                  <pdfaProperty:name>Trapped</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
              </rdf:Seq>
            </pdfaSchema:property>
          </rdf:li>
          <rdf:li rdf:parseType="Resource">
            <pdfaSchema:namespaceURI>http://ns.adobe.com/pdfx/1.3/</pdfaSchema:namespaceURI>
            <pdfaSchema:prefix>pdfx</pdfaSchema:prefix>
            <pdfaSchema:schema>PDF/X ID Schema</pdfaSchema:schema>
            <pdfaSchema:property>
              <rdf:Seq>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>Name of the ConTeXt job</pdfaProperty:description>
                  <pdfaProperty:name>ConTeXt.Jobname</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>Time stamp of ConTeXt version</pdfaProperty:description>
                  <pdfaProperty:name>ConTeXt.Time</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>ConTeXt website</pdfaProperty:description>
                  <pdfaProperty:name>ConTeXt.Url</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>ConTeXt support</pdfaProperty:description>
                  <pdfaProperty:name>ConTeXt.Support</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>ConTeXt version</pdfaProperty:description>
                  <pdfaProperty:name>ConTeXt.Version</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>ConTeXt LMTX version</pdfaProperty:description>
                  <pdfaProperty:name>ConTeXt.LMTX</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>TeX support</pdfaProperty:description>
                  <pdfaProperty:name>TeX.Support</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>LuaTeX version</pdfaProperty:description>
                  <pdfaProperty:name>LuaTeX.Version</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>LuaTeX functionality</pdfaProperty:description>
                  <pdfaProperty:name>LuaTeX.Functionality</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>LuaTeX Lua version</pdfaProperty:description>
                  <pdfaProperty:name>LuaTeX.LuaVersion</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>LuaTeX platform</pdfaProperty:description>
                  <pdfaProperty:name>LuaTeX.Platform</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>external</pdfaProperty:category>
                  <pdfaProperty:description>Document identifier</pdfaProperty:description>
                  <pdfaProperty:name>ID</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
              </rdf:Seq>
            </pdfaSchema:property>
          </rdf:li>
          <rdf:li rdf:parseType="Resource">
            <pdfaSchema:namespaceURI>http://ns.adobe.com/xap/1.0/mm/</pdfaSchema:namespaceURI>
            <pdfaSchema:prefix>xmpMM</pdfaSchema:prefix>
            <pdfaSchema:schema>XMP Media Management Schema</pdfaSchema:schema>
            <pdfaSchema:property>
              <rdf:Seq>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>internal</pdfaProperty:category>
                  <pdfaProperty:description>UUID based identifier for specific incarnation of a document</pdfaProperty:description>
                  <pdfaProperty:name>InstanceID</pdfaProperty:name>
                  <pdfaProperty:valueType>URI</pdfaProperty:valueType>
                </rdf:li>
              </rdf:Seq>
            </pdfaSchema:property>
          </rdf:li>
          <rdf:li rdf:parseType="Resource">
            <pdfaSchema:namespaceURI>http://www.aiim.org/pdfa/ns/id/</pdfaSchema:namespaceURI>
            <pdfaSchema:prefix>pdfaid</pdfaSchema:prefix>
            <pdfaSchema:schema>PDF/A ID Schema</pdfaSchema:schema>
            <pdfaSchema:property>
              <rdf:Seq>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>internal</pdfaProperty:category>
                  <pdfaProperty:description>Part of PDF/A standard</pdfaProperty:description>
                  <pdfaProperty:name>part</pdfaProperty:name>
                  <pdfaProperty:valueType>Integer</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>internal</pdfaProperty:category>
                  <pdfaProperty:description>Amendment of PDF/A standard</pdfaProperty:description>
                  <pdfaProperty:name>amd</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
                <rdf:li rdf:parseType="Resource">
                  <pdfaProperty:category>internal</pdfaProperty:category>
                  <pdfaProperty:description>Conformance level of PDF/A standard</pdfaProperty:description>
                  <pdfaProperty:name>conformance</pdfaProperty:name>
                  <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                </rdf:li>
              </rdf:Seq>
            </pdfaSchema:property>
          </rdf:li>
        </rdf:Bag>
      </pdfaExtension:schemas>
    </rdf:Description>
  </rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>

[-- Attachment #4: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: XMP metadata schema yields invalid PDF/A
  2022-02-05  8:48       ` Karl Pettersson via ntg-context
@ 2022-02-05  8:59         ` luigi scarso via ntg-context
  2022-02-05 12:14           ` Karl Pettersson via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: luigi scarso via ntg-context @ 2022-02-05  8:59 UTC (permalink / raw)
  To: Karl Pettersson; +Cc: luigi scarso, mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1304 bytes --]

On Sat, Feb 5, 2022 at 9:48 AM Karl Pettersson <karl.pettersson@klpn.se>
wrote:

>
> Attach metadata xml for the non-validating and validating example
> (extraced with `pdfinfo -meta | xmllint format -`) in the
> Github issue.
>
> Here is a reference to the description element. Note that only
> description seems to be redefined, not title.
>


it's not redefined -- it's dropped. And this is ok.
You can also check with
  <dc:description>FOO</dc:description>
      <dc:title>
        <rdf:Alt>
          <rdf:li xml:lang="x-default">TITLE</rdf:li>
        </rdf:Alt>
      </dc:title>
and again it's valid.
But
https://www.iso.org/obp/ui/#iso:std:iso:19005:-1:ed-1:v2:cor:1:v1:en
and
https://www.iso.org/obp/ui/#iso:std:iso:19005:-1:ed-1:v2:cor:2:v1:en:tab:1
suggest that dc:description and dc:title are of the same type,
which is coherent with
XMPSpecificationPart1.pdf
as in
https://github.com/adobe/XMP-Toolkit-SDK/tree/main/docs

I.e. these are correct   --  but Subject must agree with dc:description
  <dc:description>
        <rdf:Alt>
          <rdf:li xml:lang="x-default"/>
        </rdf:Alt>
      </dc:description>
      <dc:title>
        <rdf:Alt>
          <rdf:li xml:lang="x-default">TITLE</rdf:li>
        </rdf:Alt>
      </dc:title>

At least, this is what I understand.

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 2433 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: XMP metadata schema yields invalid PDF/A
  2022-02-05  8:59         ` luigi scarso via ntg-context
@ 2022-02-05 12:14           ` Karl Pettersson via ntg-context
  2022-02-05 12:28             ` Karl Pettersson via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: Karl Pettersson via ntg-context @ 2022-02-05 12:14 UTC (permalink / raw)
  To: luigi scarso; +Cc: Karl Pettersson, mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1413 bytes --]

On Sat, Feb 05, 2022 at 09:59:44AM +0100, luigi scarso wrote:
 
> it's not redefined -- it's dropped. And this is ok.
> You can also check with
>   <dc:description>FOO</dc:description>
>       <dc:title>
>         <rdf:Alt>
>           <rdf:li xml:lang="x-default">TITLE</rdf:li>
>         </rdf:Alt>
>       </dc:title>
> and again it's valid.
> But
> https://www.iso.org/obp/ui/#iso:std:iso:19005:-1:ed-1:v2:cor:1:v1:en
> and
> https://www.iso.org/obp/ui/#iso:std:iso:19005:-1:ed-1:v2:cor:2:v1:en:tab:1
> suggest that dc:description and dc:title are of the same type,
> which is coherent with
> XMPSpecificationPart1.pdf
> as in
> https://github.com/adobe/XMP-Toolkit-SDK/tree/main/docs
> 
> I.e. these are correct   --  but Subject must agree with dc:description
>   <dc:description>
>         <rdf:Alt>
>           <rdf:li xml:lang="x-default"/>
>         </rdf:Alt>
>       </dc:description>
>       <dc:title>
>         <rdf:Alt>
>           <rdf:li xml:lang="x-default">TITLE</rdf:li>
>         </rdf:Alt>
>       </dc:title>
> 
> At least, this is what I understand.
>

From what I understand, ConTeXt applies a custom Dublin Core schema
containing just a redefinition of dc:description, which is not coherent
with how dc:description is written by the application.

This patch to lpdf-pda.xml removes the validation error.

> -- 
> luigi

-- 
Karl Pettersson, Sweden
Uppsala

https://static-dust.klpn.se/

[-- Attachment #2: lpdf-pda.diff --]
[-- Type: text/plain, Size: 1188 bytes --]

79a80,97
>                         <pdfaSchema:namespaceURI>http://purl.org/dc/elements/1.1/</pdfaSchema:namespaceURI>
>                         <pdfaSchema:prefix>pdf</pdfaSchema:prefix>
>                         <pdfaSchema:schema>Dubline Core Schema</pdfaSchema:schema>
>                         <pdfaSchema:property>
>                             <rdf:Seq>
>                                 <rdf:li rdf:parseType="Resource">
>                                     <pdfaProperty:category>internal</pdfaProperty:category>
>                                     <pdfaProperty:description>Subject in Document Properties</pdfaProperty:description>
>                                     <pdfaProperty:name>description</pdfaProperty:name>
>                                     <pdfaProperty:valueType>Text</pdfaProperty:valueType>
>                                 </rdf:li>
>                             </rdf:Seq>
>                         </pdfaSchema:property>
>                         <pdfaSchema:valueType>
>                             <rdf:Seq/>
>                         </pdfaSchema:valueType>
>                     </rdf:li>
>                     <rdf:li rdf:parseType="Resource">

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: XMP metadata schema yields invalid PDF/A
  2022-02-05 12:14           ` Karl Pettersson via ntg-context
@ 2022-02-05 12:28             ` Karl Pettersson via ntg-context
  2022-02-05 12:33               ` luigi scarso via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: Karl Pettersson via ntg-context @ 2022-02-05 12:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Karl Pettersson

[-- Attachment #1: Type: text/plain, Size: 402 bytes --]


> 
> From what I understand, ConTeXt applies a custom Dublin Core schema
> containing just a redefinition of dc:description, which is not coherent
> with how dc:description is written by the application.
> 
> This patch to lpdf-pda.xml removes the validation error.
> 

Sorry, diff the other way round according to diff original new.

-- 
Karl Pettersson
Uppsala, Sweden

https://static-dust.klpn.se/

[-- Attachment #2: lpdf-pda.diff --]
[-- Type: text/plain, Size: 1188 bytes --]

80,97d79
<                         <pdfaSchema:namespaceURI>http://purl.org/dc/elements/1.1/</pdfaSchema:namespaceURI>
<                         <pdfaSchema:prefix>pdf</pdfaSchema:prefix>
<                         <pdfaSchema:schema>Dubline Core Schema</pdfaSchema:schema>
<                         <pdfaSchema:property>
<                             <rdf:Seq>
<                                 <rdf:li rdf:parseType="Resource">
<                                     <pdfaProperty:category>internal</pdfaProperty:category>
<                                     <pdfaProperty:description>Subject in Document Properties</pdfaProperty:description>
<                                     <pdfaProperty:name>description</pdfaProperty:name>
<                                     <pdfaProperty:valueType>Text</pdfaProperty:valueType>
<                                 </rdf:li>
<                             </rdf:Seq>
<                         </pdfaSchema:property>
<                         <pdfaSchema:valueType>
<                             <rdf:Seq/>
<                         </pdfaSchema:valueType>
<                     </rdf:li>
<                     <rdf:li rdf:parseType="Resource">

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: XMP metadata schema yields invalid PDF/A
  2022-02-05 12:28             ` Karl Pettersson via ntg-context
@ 2022-02-05 12:33               ` luigi scarso via ntg-context
  2022-02-05 14:18                 ` luigi scarso via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: luigi scarso via ntg-context @ 2022-02-05 12:33 UTC (permalink / raw)
  To: Karl Pettersson; +Cc: luigi scarso, mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 496 bytes --]

On Sat, Feb 5, 2022 at 1:28 PM Karl Pettersson <karl.pettersson@klpn.se>
wrote:

>
> >
> > From what I understand, ConTeXt applies a custom Dublin Core schema
> > containing just a redefinition of dc:description, which is not coherent
> > with how dc:description is written by the application.
> >
> > This patch to lpdf-pda.xml removes the validation error.
> >
>
> Sorry, diff the other way round according to diff original new.
>

indeed..
Ok, now I see. Need to check some things .
-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 945 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: XMP metadata schema yields invalid PDF/A
  2022-02-05 12:33               ` luigi scarso via ntg-context
@ 2022-02-05 14:18                 ` luigi scarso via ntg-context
  2022-02-05 14:29                   ` Karl Pettersson via ntg-context
  0 siblings, 1 reply; 12+ messages in thread
From: luigi scarso via ntg-context @ 2022-02-05 14:18 UTC (permalink / raw)
  To: Karl Pettersson; +Cc: luigi scarso, mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 848 bytes --]

On Sat, Feb 5, 2022 at 1:33 PM luigi scarso <luigi.scarso@gmail.com> wrote:

>
>
> On Sat, Feb 5, 2022 at 1:28 PM Karl Pettersson <karl.pettersson@klpn.se>
> wrote:
>
>>
>> >
>> > From what I understand, ConTeXt applies a custom Dublin Core schema
>> > containing just a redefinition of dc:description, which is not coherent
>> > with how dc:description is written by the application.
>> >
>> > This patch to lpdf-pda.xml removes the validation error.
>> >
>>
>> Sorry, diff the other way round according to diff original new.
>>
>
> indeed..
> Ok, now I see. Need to check some things .
> --
> luigi
>

Following
https://www.pdfa.org/wp-content/until2016_uploads/2011/08/pdfa_metadata-2b.pdf
I think we should replace
<pdfaProperty:valueType>Text</pdfaProperty:valueType>
with
 <pdfaProperty:valueType>Lang Alt</pdfaProperty:valueType>

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1831 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: XMP metadata schema yields invalid PDF/A
  2022-02-05 14:18                 ` luigi scarso via ntg-context
@ 2022-02-05 14:29                   ` Karl Pettersson via ntg-context
  0 siblings, 0 replies; 12+ messages in thread
From: Karl Pettersson via ntg-context @ 2022-02-05 14:29 UTC (permalink / raw)
  To: luigi scarso; +Cc: Karl Pettersson, mailing list for ConTeXt users

On Sat, Feb 05, 2022 at 03:18:08PM +0100, luigi scarso wrote:
>
> 
> Following
> https://www.pdfa.org/wp-content/until2016_uploads/2011/08/pdfa_metadata-2b.pdf
> I think we should replace
> <pdfaProperty:valueType>Text</pdfaProperty:valueType>
> with
>  <pdfaProperty:valueType>Lang Alt</pdfaProperty:valueType>
> 
> -- 
> luigi

Yes, if a custom schema is needed at all (from what I can see, the XML
does not embed any type definition for dc:title, for example).

-- 
Karl Pettersson
Uppsala, Sweden

https://static-dust.klpn.se/
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-02-05 14:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-04 18:29 XMP metadata schema yields invalid PDF/A Karl Pettersson via ntg-context
2022-02-04 21:25 ` Hans Hagen via ntg-context
2022-02-04 21:36   ` luigi scarso via ntg-context
2022-02-04 22:11   ` Karl Pettersson via ntg-context
2022-02-04 23:37     ` luigi scarso via ntg-context
2022-02-05  8:48       ` Karl Pettersson via ntg-context
2022-02-05  8:59         ` luigi scarso via ntg-context
2022-02-05 12:14           ` Karl Pettersson via ntg-context
2022-02-05 12:28             ` Karl Pettersson via ntg-context
2022-02-05 12:33               ` luigi scarso via ntg-context
2022-02-05 14:18                 ` luigi scarso via ntg-context
2022-02-05 14:29                   ` Karl Pettersson via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).