Skip to content

Commit

Permalink
add resp elementSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
rausch-supola committed Feb 12, 2025
1 parent 761d002 commit e4d5d1a
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 34 deletions.
59 changes: 27 additions & 32 deletions 802_tei_odd/out/shawi_corpus.rng
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns:xlink="http://www.w3.org/1999/xlink"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
ns="http://www.tei-c.org/ns/1.0"><!--
Schema generated from ODD source 2025-02-10T15:49:48Z. .
Schema generated from ODD source 2025-02-12T08:38:23Z. .
TEI Edition: P5 Version 4.7.0. Last updated on 16th November 2023, revision e5dd73ed0
TEI Edition Location: https://www.tei-c.org/Vault/P5/4.7.0/
Expand Down Expand Up @@ -3297,39 +3297,34 @@ Suggested values include: 1] deprecationInfo (deprecation information)</a:docume
</define>
<define name="resp">
<element name="resp">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(responsibility) contains a phrase describing the nature of a person's intellectual responsibility, or an organization's role in the production or distribution of a work. [3.12.2.2. Titles, Authors, and Editors 2.2.1. The Title Statement 2.2.2. The Edition Statement 2.2.5. The Series Statement]</a:documentation>
<ref name="macro.phraseSeq.limited"/>
<ref name="att.global.attributes"/>
<ref name="att.canonical.attributes"/>
<ref name="att.datable.attributes"/>
<optional>
<attribute name="calendar">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates one or more systems or calendars to which the date represented by the content of this element belongs.</a:documentation>
<list>
<oneOrMore>
<data type="anyURI">
<param name="pattern">\S+</param>
</data>
</oneOrMore>
</list>
</attribute>
</optional>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
<choice>
<value>transcribed by</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Transcribed by</a:documentation>
<value>transcription checked by</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Transcription checked by</a:documentation>
<value>transcription checked by2</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Transcription checked by2</a:documentation>
<value>translated by</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Translated by</a:documentation>
<value>translation checked by</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Translation checked by</a:documentation>
<value>glossed by</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Glossed by</a:documentation>
<value>glossing checked by</value>
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Glossing checked by</a:documentation>
</choice>
<pattern xmlns="http://purl.oclc.org/dsdl/schematron"
id="vicav_corpus-resp-calendar-calendar-check-resp-constraint-rule-20">
<sch:rule xmlns="http://www.tei-c.org/ns/1.0"
xmlns:math="http://www.w3.org/1998/Math/MathML"
xmlns:rng="http://relaxng.org/ns/structure/1.0"
xmlns:s="http://purl.oclc.org/dsdl/schematron"
xmlns:sch="http://purl.oclc.org/dsdl/schematron"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:xi="http://www.w3.org/2001/XInclude"
context="tei:*[@calendar]">
<sch:assert test="string-length( normalize-space(.) ) gt 0"> @calendar indicates one or more
systems or calendars to which the date represented by the content of this element belongs,
but this <sch:name/> element has no textual content.</sch:assert>
</sch:rule>
id="vicav_corpus-resp-uniqueRespValues-constraint-rule-20">
<s:rule xmlns="http://www.tei-c.org/ns/1.0"
xmlns:math="http://www.w3.org/1998/Math/MathML"
xmlns:s="http://purl.oclc.org/dsdl/schematron"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:xi="http://www.w3.org/2001/XInclude"
context="tei:respStmt">
<s:assert test="not(tei:resp[. = preceding::tei:resp])">Each value inside 'respStmt' must be unique</s:assert>
</s:rule>
</pattern>
<empty/>
</element>
</define>
<define name="title">
Expand Down
22 changes: 20 additions & 2 deletions 802_tei_odd/shawi_corpus.odd
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,26 @@
<moduleRef key="linking" include="timeline when anchor"/>
<moduleRef key="spoken" include="annotationBlock u recordingStmt recording"></moduleRef>

<elementSpec ident="resp" module="core" mode="replace">
<content>
<valList type="closed">
<valItem ident="transcribed by"><desc>Transcribed by</desc></valItem>
<valItem ident="transcription checked by"><desc>Transcription checked by</desc></valItem>
<valItem ident="transcription checked by2"><desc>Transcription checked by2</desc></valItem>
<valItem ident="translated by"><desc>Translated by</desc></valItem>
<valItem ident="translation checked by"><desc>Translation checked by</desc></valItem>
<valItem ident="glossed by"><desc>Glossed by</desc></valItem>
<valItem ident="glossing checked by"><desc>Glossing checked by</desc></valItem>
</valList>
</content>
<constraintSpec ident="uniqueRespValues" scheme="schematron">
<constraint>
<s:rule context="tei:respStmt">
<s:assert test="not(tei:resp[. = preceding::tei:resp])">Each value inside 'respStmt' must be unique</s:assert>
</s:rule></constraint>
</constraintSpec>
</elementSpec>

<elementSpec ident="respStmt" module="core" mode="change">
<constraintSpec ident="name-check" scheme="schematron">
<constraint>
Expand Down Expand Up @@ -135,7 +155,6 @@
</s:rule>
</constraint>
</constraintSpec>

<constraintSpec ident="pos-spec" scheme="schematron">
<constraint>
<s:rule context="tei:w">
Expand All @@ -146,7 +165,6 @@
</constraint>
</constraintSpec>
</elementSpec>

</schemaSpec>
</body>
</text>
Expand Down

0 comments on commit e4d5d1a

Please sign in to comment.