Skip to content

'type conversions' in corrections #77

Description

@kosloot

consider this very strange FoliA file:

<?xml version="1.0" encoding="UTF-8"?>
<FoLiA xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://ilk.uvt.nl/folia" xml:id="doc" generator="libfolia-v1.11" version="2.2">
  <metadata type="native">
    <annotations>
      <correction-annotation />
      <text-annotation />
      <pos-annotation set="bla"/>
      <paragraph-annotation />
    </annotations>
  </metadata>
  <text xml:id="bug">
    <correction>
      <new>
        <p xml:id="p">
          <t>paragraaf</t>
        </p>
      </new>
      <original>
        <pos xml:id="s" class="n">
        </pos>
      </original>
    </correction>
  </text>
</FoLiA>

Both foliavalidator and folialint accept this, but I assume this is abusing the correction node.
My impression is, that we don't want a correction to modify the "type" of the subnode.
So i suggest to add some limitation here. preferable that all arguments are of the same type.
Like all <w> or all <t>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions