Skip to content

role= attribute with comma? #111

Description

@sydb

In MIX-People.xml there are 2 @role values of "speaker, collaborator"; in MIX-Lexicon-TEI-Dict.xml there are 2 @role values of "speaker collaborator" (and 1 of "editor researcher").

The Lexicon file is correct. Because COMMA (U+002C, ‘,’) is (unwisely IMHO) a legal character in teidata.word, and thus in teidata.enumerated, this is not a validity error. But since the values of @role are space-separated, in MIX-People.xml the two roles are “collaborator” and “speaker,”.

The following (untested) ODD snippet would allow this (and all sorts of other @role errors) to be caught in the initial validation phase.

	<elementSpec ident="person" module="namesdates" mode="change">
	  <attList>
	    <attDef ident="role" mode="change">
	      <valList type="closed">
		<valItem ident="speaker"/>
		<valItem ident="collaborator"/>
		<valItem ident="editor"/>
		<valItem ident="researcher"/> 
		<valItem ident="expert"/>
	      </valList>
	    </attDef>
	  </attList>
	</elementSpec>

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions