Skip to content

[md2orchestra] Invalid usage of dcterms name space in metadata element #62

Description

@JThoennes

Comparing the output of md2orchestra to the Orchestra file of FIX Latest, I see some notable differences: While the Orchestra FIX Latest only uses the dc: XML name space,
the generated XML code uses dcterms: which causes validation errors in my IDE.

I think that the <fixr:metadata> elements only allows <dc:*>. The Orchestra FIX Latest adheres to this restriction:

<?xml version="1.0" encoding="UTF-8"?>
<fixr:repository xmlns:dc="http://purl.org/dc/elements/1.1/"
                 xmlns:fixr="http://fixprotocol.io/2020/orchestra/repository"
                 xmlns:xs="http://www.w3.org/2001/XMLSchema"
                 name="FIX.Latest"
                 version="FIX.Latest_EP269">
   <fixr:metadata>
      <dc:title>Orchestra</dc:title>
      <dc:creator>unified2orchestra.xslt script</dc:creator>
      <dc:publisher>FIX Trading Community</dc:publisher>
      <dc:date>2021-08-14T22:38:48.950856Z</dc:date>
      <dc:format>Orchestra schema</dc:format>
      <dc:source>FIX Unified Repository</dc:source>
      <dc:rights>Copyright (c) FIX Protocol Ltd. All Rights Reserved.</dc:rights>
   </fixr:metadata>

while the generated code looks like:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fixr:repository xmlns:dc="http://purl.org/dc/elements/1.1/"
                 xmlns:dcterms="http://purl.org/dc/terms/"
                 xmlns:fixr="http://fixprotocol.io/2020/orchestra/repository"
                 name="Rules of Engagement of the FIX Trading Adapter 1.0 1.0"
                 version="1.0">
    <fixr:metadata>
        <dcterms:title>Rules of Engagement of the FIX Trading Adapter</dcterms:title>
        <dcterms:creator>Jörg Thönnes</dcterms:creator>
        <dcterms:publisher>aixigo AG, Aachen, Germany</dcterms:publisher>
        <dcterms:language>English</dcterms:language>
        <dcterms:source>aixigo-fix-orchestra.xml</dcterms:source>
        <dcterms:rights>Copyright (C) 2022, aixigo AG, Aachen, Germany</dcterms:rights>
    </fixr:metadata>

I think the problem is the Tablature RepositoryMapper.getPreferredPrefix(). The dcterms case should be removed.
Then both the XML name space declaration is dropped and the dc: prefix is used.

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Type

No type
No fields configured for issues without a type.

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions