Skip to content

Commit 2d7aff0

Browse files
committed
concluding merge after manual conflict resolution of:
* P5/Exemplars/tei_enrich.odd * P5/Exemplars/tei_simplePrint.odd * P5/Test/testmeta2010.odd * P5/Utilities/TEI-to-tei_customization.xslt
2 parents 79458af + 530d098 commit 2d7aff0

12 files changed

+137
-125
lines changed

P5/Exemplars/tei_enrich.odd

+5-4
Original file line numberDiff line numberDiff line change
@@ -3453,10 +3453,11 @@ which should be supported by a more detailed description using the
34533453
<elementSpec ident="date" mode="change" module="core">
34543454
<constraintSpec scheme="schematron" ident="dates">
34553455
<constraint>
3456-
<sch:rule context="tei:date">
3457-
<sch:assert test="@when or (@notAfter and @notBefore) or (@from and @to)">
3458-
You must provide either @when or @to/@from, or @notAfter/@notBefore.</sch:assert>
3459-
</sch:rule>
3456+
<sch:rule context="tei:date">
3457+
<sch:assert test="@when or (@notAfter and @notBefore) or (@from and @to)">
3458+
You must provide either @when or @to/@from, or @notAfter/@notBefore.
3459+
</sch:assert>
3460+
</sch:rule>
34603461
</constraint>
34613462
</constraintSpec>
34623463
</elementSpec>

P5/Exemplars/tei_simplePrint.odd

+24-24
Original file line numberDiff line numberDiff line change
@@ -3484,8 +3484,13 @@ live without God in the world, and only mind earthly things.
34843484
<constraintSpec ident="validtarget" scheme="schematron">
34853485
<constraint>
34863486
<sch:rule context="tei:*[@target]">
3487+
<!-- If & when we are confident the processor
3488+
will be an XPath 3+ processor the
3489+
“tokenize(normalize-space(@target),'\s+')”
3490+
below could be shortened to just
3491+
“tokenize(@target)”. —Syd, 2024-04-12 -->
34873492
<sch:let name="results"
3488-
value="for $t in tokenize(normalize-space(@target),'\s+') return starts-with($t,'#') and not(id(substring($t,2)))"/>
3493+
value="for $t in tokenize(normalize-space(@target),'\s+') return starts-with($t,'#') and not(id(substring($t,2)))"/>
34893494
<sch:report test="some $x in $results satisfies $x"> Error: Every local pointer
34903495
in "<sch:value-of select="@target"/>" must point to an ID in this document
34913496
(<sch:value-of select="$results"/>)</sch:report>
@@ -3997,10 +4002,11 @@ live without God in the world, and only mind earthly things.
39974002
<elementSpec ident="bibl" mode="change">
39984003
<constraintSpec mode="add" ident="noEmptyBibl" scheme="schematron">
39994004
<constraint>
4000-
<sch:rule context="tei:bibl">
4001-
<sch:assert test="child::* or child::text()[normalize-space()]" role="ERROR"> Element
4002-
"<sch:name/>" may not be empty. </sch:assert>
4003-
</sch:rule>
4005+
<sch:rule context="tei:bibl">
4006+
<sch:assert test="child::* or child::text()[normalize-space()]" role="ERROR">
4007+
Element "<sch:name/>" may not be empty.
4008+
</sch:assert>
4009+
</sch:rule>
40044010
</constraint>
40054011
</constraintSpec>
40064012
<model predicate="parent::listBibl" behaviour="listItem"/>
@@ -4114,29 +4120,23 @@ live without God in the world, and only mind earthly things.
41144120
<elementSpec ident="choice" mode="change">
41154121
<constraintSpec ident="choiceSize" scheme="schematron" mode="add">
41164122
<constraint>
4117-
<sch:rule context="tei:choice">
4118-
<sch:assert test="count(*) &gt; 1" role="ERROR"> Element "<sch:name/>" must have at least two child elements.</sch:assert>
4119-
</sch:rule>
4123+
<sch:rule context="tei:choice">
4124+
<sch:assert test="count(*) gt 1" role="ERROR">
4125+
Element "<sch:name/>" must have at least two child elements.
4126+
</sch:assert>
4127+
</sch:rule>
41204128
</constraint>
41214129
</constraintSpec>
41224130
<constraintSpec ident="choiceContent" scheme="schematron" mode="add">
41234131
<constraint>
4124-
<sch:rule context="tei:choice">
4125-
<sch:assert test="( tei:corr
4126-
or tei:sic
4127-
or tei:expan
4128-
or tei:abbr
4129-
or tei:reg
4130-
or tei:orig )
4131-
and
4132-
(
4133-
(tei:corr and tei:sic)
4134-
or
4135-
(tei:expan and tei:abbr)
4136-
or
4137-
(tei:reg and tei:orig)
4138-
)" role="ERROR">
4139-
Element "<sch:name/>" must have corresponding corr/sic, expand/abbr, reg/orig </sch:assert>
4132+
<sch:rule context="tei:choice">
4133+
<sch:assert test="( tei:corr and tei:sic )
4134+
or
4135+
( tei:expan and tei:abbr )
4136+
or
4137+
( tei:reg and tei:orig )" role="ERROR">
4138+
Element "<sch:name/>" must have corresponding corr/sic, expand/abbr, reg/orig
4139+
</sch:assert>
41404140
</sch:rule>
41414141
</constraint>
41424142
</constraintSpec>

P5/Source/Guidelines/en/SA-LinkingSegmentationAlignment.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3289,7 +3289,7 @@ will only select the text of the poem, with no markup inside.</p>
32893289
<gi>standOff</gi> is largely the same as the metadata that describes the associated resource
32903290
(e.g., the transcribed text in <gi>text</gi>), then the <gi>standOff</gi> and the encoded
32913291
associated resource may appear as children of the same <gi>TEI</gi> element. The example below
3292-
has a transcription with <gi>placename</gi> elements in the text linked to a list of <gi>place</gi> elements in the
3292+
has a transcription with <gi>placeName</gi> elements in the text linked to a list of <gi>place</gi> elements in the
32933293
<gi>standOff</gi> section.
32943294
<egXML xmlns="http://www.tei-c.org/ns/Examples" valid="feasible">
32953295
<TEI>

P5/Source/Specs/acquisition.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- © TEI Consortium. Dual-licensed under CC-by and BSD2 licenses; see the file COPYING.txt for details. -->
33
<?xml-model href="https://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/release/xml/tei/odd/p5.nvdl" type="application/xml" schematypens="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"?><elementSpec xmlns="http://www.tei-c.org/ns/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" module="msdescription" xml:id="ACQUISITION" ident="acquisition">
4-
<gloss xml:lang="en" versionDate="2007-06-12">acquisition</gloss>
5-
<gloss xml:lang="es" versionDate="2022-06-16">adquisición</gloss>
4+
<gloss versionDate="2007-06-12" xml:lang="en">acquisition</gloss>
5+
<gloss versionDate="2022-06-16" xml:lang="es">adquisición</gloss>
66
<gloss versionDate="2007-06-12" xml:lang="fr">acquisition</gloss>
77
<desc versionDate="2019-01-17" xml:lang="en" xml:id="acquisn.desc">contains any descriptive or other information
88
concerning the process by which a manuscript or manuscript part or other object entered the holding
@@ -34,7 +34,7 @@ institution.</desc>
3434
date represented by the content of this element belongs.</desc>
3535
<desc versionDate="2007-12-20" xml:lang="ko">날짜 표현 시스템 또는 달력 표시 형식을 표시한다.</desc>
3636
<desc versionDate="2007-05-02" xml:lang="zh-TW">指明該日期表示所使用的曆法計算系統。</desc>
37-
<desc xml:lang="ja" versionDate="2019-02-03">この要素を含むコンテントにおける日付の暦やシステムを示す。</desc>
37+
<desc versionDate="2019-02-03" xml:lang="ja">この要素を含むコンテントにおける日付の暦やシステムを示す。</desc>
3838
<desc versionDate="2009-01-06" xml:lang="fr">indique le système ou le calendrier auquel
3939
appartient la date exprimée dans le contenu de l'élément.</desc>
4040
<desc versionDate="2007-05-04" xml:lang="es">indica el sistema o calendario en que se muestra

P5/Source/Specs/addSpan.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@
7474
end by the <att>spanTo</att> attribute.</p>
7575
</remarks>
7676
<remarks versionDate="2018-09-08" xml:lang="es"><p>Tanto el inicio como el final del material que se agrego debe ser marcado; el inicio con el mismo elemento <gi>addSpan</gi> y el final con el atributo <att>spanTo</att>.</p></remarks>
77-
<remarks xml:lang="fr" versionDate="2009-11-16">
77+
<remarks versionDate="2009-11-16" xml:lang="fr">
7878
<p>Le début et la fin de la partie de texte ajoutée doivent être marqués ; le début, par l'élément
7979
<gi>addSpan</gi> lui-même, la fin, par l'attribut <att>spanTo</att>.</p>
8080
</remarks>
81-
<remarks xml:lang="ja" versionDate="2008-04-05">
81+
<remarks versionDate="2008-04-05" xml:lang="ja">
8282
<p>
8383
追加する情報の始めと終わりの両方にマークアップすべきである。
8484
始めは、要素<gi>addSpan</gi>自身によって、終わりは属性

P5/Source/Specs/affiliation.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- © TEI Consortium. Dual-licensed under CC-by and BSD2 licenses; see the file COPYING.txt for details. -->
33
<?xml-model href="https://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/release/xml/tei/odd/p5.nvdl" type="application/xml" schematypens="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"?><elementSpec xmlns="http://www.tei-c.org/ns/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" module="namesdates" ident="affiliation">
4-
<gloss xml:lang="en" versionDate="2008-12-09">affiliation</gloss>
4+
<gloss versionDate="2008-12-09" xml:lang="en">affiliation</gloss>
55
<gloss versionDate="2008-12-09" xml:lang="fr">affiliation</gloss>
66
<desc versionDate="2005-01-14" xml:lang="en">contains an informal description of a person's present or past affiliation with some
77
organization, for example an employer or sponsor.</desc>
@@ -41,7 +41,7 @@
4141
date represented by the content of this element belongs.</desc>
4242
<desc versionDate="2007-12-20" xml:lang="ko">날짜 표현 시스템 또는 달력 표시 형식을 표시한다.</desc>
4343
<desc versionDate="2007-05-02" xml:lang="zh-TW">指明該日期表示所使用的曆法計算系統。</desc>
44-
<desc xml:lang="ja" versionDate="2019-02-03">この要素を含むコンテントにおける日付の暦やシステムを示す。</desc>
44+
<desc versionDate="2019-02-03" xml:lang="ja">この要素を含むコンテントにおける日付の暦やシステムを示す。</desc>
4545
<desc versionDate="2009-01-06" xml:lang="fr">indique le système ou le calendrier auquel
4646
appartient la date exprimée dans le contenu de l'élément.</desc>
4747
<desc versionDate="2007-05-04" xml:lang="es">indica el sistema o calendario en que se muestra
@@ -82,7 +82,7 @@
8282
</affiliation>
8383
</egXML>
8484
</exemplum>
85-
<exemplum xml:lang="en" versionDate="2018-10-30">
85+
<exemplum versionDate="2018-10-30" xml:lang="en">
8686
<p>This example indicates that the person was affiliated with the
8787
Australian Journalists Association at some point between the dates
8888
listed.</p>
@@ -92,7 +92,7 @@
9292
</affiliation>
9393
</egXML>
9494
</exemplum>
95-
<exemplum xml:lang="en" versionDate="2018-10-30">
95+
<exemplum versionDate="2018-10-30" xml:lang="en">
9696
<p>This example indicates that the person was affiliated with Mount Holyoke College throughout the entire span of the date range listed.</p>
9797
<egXML xmlns="http://www.tei-c.org/ns/Examples" source="#NONE">
9898
<affiliation from="1902-01-01" to="1906-01-01">Was an assistant professor at Mount Holyoke College.</affiliation>
@@ -124,7 +124,7 @@
124124
<gi>name</gi> comme ci-dessus, soit l'élément plus spécifique
125125
<gi>orgName</gi>.</p>
126126
</remarks>
127-
<remarks xml:lang="ja" versionDate="2008-04-05">
127+
<remarks versionDate="2008-04-05" xml:lang="ja">
128128
<p> 組織名は、要素<gi>name</gi>または、より特化した要素 <gi>orgName</gi>でマークアップした方がよい。 </p>
129129
</remarks>
130130
<listRef>

P5/Source/Specs/caption.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- © TEI Consortium. Dual-licensed under CC-by and BSD2 licenses; see the file COPYING.txt for details. -->
33
<?xml-model href="https://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/release/xml/tei/odd/p5.nvdl" type="application/xml" schematypens="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"?>
44
<elementSpec xmlns="http://www.tei-c.org/ns/1.0" module="drama" ident="caption">
5-
<gloss xml:lang="en" versionDate="2007-06-12">caption</gloss>
5+
<gloss versionDate="2007-06-12" xml:lang="en">caption</gloss>
66
<gloss versionDate="2007-06-12" xml:lang="fr">sous-titre</gloss>
77
<desc versionDate="2005-01-14" xml:lang="en">contains the text of a caption or other text displayed as part of
88
a film script or screenplay.</desc>
@@ -65,10 +65,10 @@ laughing affectedly and drinking champagne.</view>
6565
<remarks versionDate="2005-01-14" xml:lang="en">
6666
<p>A specialized form of stage direction.</p>
6767
</remarks>
68-
<remarks xml:lang="fr" versionDate="2007-06-12">
68+
<remarks versionDate="2007-06-12" xml:lang="fr">
6969
<p>Forme particulière d'indication scénique.</p>
7070
</remarks>
71-
<remarks xml:lang="ja" versionDate="2008-04-05">
71+
<remarks versionDate="2008-04-05" xml:lang="ja">
7272
<p>ト書きの特別な形。</p>
7373
</remarks>
7474
<listRef>

P5/Source/Specs/case.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- © TEI Consortium. Dual-licensed under CC-by and BSD2 licenses; see the file COPYING.txt for details. -->
33
<?xml-model href="https://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/release/xml/tei/odd/p5.nvdl" type="application/xml" schematypens="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"?>
44
<elementSpec xmlns="http://www.tei-c.org/ns/1.0" module="dictionaries" ident="case">
5-
<gloss xml:lang="en" versionDate="2007-06-12">case</gloss>
5+
<gloss versionDate="2007-06-12" xml:lang="en">case</gloss>
66
<gloss versionDate="2007-06-12" xml:lang="fr">cas</gloss>
77
<desc versionDate="2005-01-14" xml:lang="en">contains grammatical case information given by a dictionary for a given form.</desc>
88
<desc versionDate="2007-12-20" xml:lang="ko">주어진 형식에 대하여 사전에 제시된 문법적 격 정보를 포함한다.</desc>
@@ -91,15 +91,15 @@
9191
<mentioned>dative</mentioned>, <mentioned>genitive</mentioned>, etc.</p>
9292
<p>This element is synonymous with <tag>gram type="case"</tag>.</p>
9393
</remarks>
94-
<remarks xml:lang="fr" versionDate="2007-06-12">
94+
<remarks versionDate="2007-06-12" xml:lang="fr">
9595
<p rend="dataDesc">Peut contenir des caractères et des éléments du niveau expression.
9696
Les valeurs types seront <mentioned> nominative</mentioned>,
9797
<mentioned>accusative</mentioned>, <mentioned>dative</mentioned>,
9898
<mentioned>genitive</mentioned>, etc.</p>
9999
<p>Cet élément est synonyme de<tag>gram type="case"</tag>
100100
</p>
101101
</remarks>
102-
<remarks xml:lang="ja" versionDate="2008-04-05">
102+
<remarks versionDate="2008-04-05" xml:lang="ja">
103103
<p rend="dataDesc">
104104
文字データまたは句レベルの要素。典型的な値は、
105105
<mentioned>nominative(主格)</mentioned>、<mentioned>accusative(対格)</mentioned>、<mentioned>dative(与格)</mentioned>、<mentioned>genitive(属格)

P5/Test/testmeta2010.odd

+58-59
Original file line numberDiff line numberDiff line change
@@ -46,65 +46,64 @@
4646

4747
<p>Now make some changes and deletions</p>
4848
<specGrp xml:id="Changes">
49-
<elementSpec ident="list" mode="change">
50-
<attList>
51-
<attDef ident="type" mode="change">
52-
<constraintSpec mode="add" ident="a1" scheme="schematron">
53-
<constraint>
54-
<sch:rule context="tei:list">
55-
<sch:assert test="count(ancestor-or-self::tei:list[1]/tei:item)&lt;2">list too short </sch:assert>
56-
</sch:rule>
57-
</constraint>
58-
</constraintSpec>
59-
<valList type="closed" mode="replace">
60-
<valItem ident="enumerated"/>
61-
<valItem ident="itemized"/>
62-
</valList>
63-
</attDef>
64-
</attList>
65-
</elementSpec>
66-
<classSpec ident="att.canonical" type="atts" mode="delete"/>
67-
<classSpec ident="att.global.rendition" type="atts" mode="change">
68-
<attList>
69-
<attDef ident="rendition" mode="delete"/>
70-
</attList>
71-
</classSpec>
72-
<macroSpec ident="macro.specialPara" mode="change">
73-
<content>
74-
<zeroOrMore xmlns="http://relaxng.org/ns/structure/1.0">
75-
<choice>
76-
<text/>
77-
<ref name="model.phrase"/>
78-
</choice>
79-
</zeroOrMore>
80-
</content>
81-
</macroSpec>
82-
<elementSpec ident="div" mode="change">
83-
<attList>
84-
<attDef ident="type" mode="delete"/>
85-
<attDef ident="rend" mode="change">
86-
<valList type="closed" mode="add">
87-
<valItem ident="i">
88-
<gloss xml:lang="en" versionDate="2014-01-12">italic</gloss>
89-
</valItem>
90-
<valItem ident="b">
91-
<gloss xml:lang="en" versionDate="2014-01-12">bold</gloss>
92-
</valItem>
93-
</valList>
94-
</attDef>
95-
</attList>
96-
</elementSpec>
97-
<classSpec mode="change" type="atts" ident="att.docStatus">
98-
<attList>
99-
<attDef ident="status" mode="change">
100-
<valList type="closed" mode="replace">
101-
<valItem ident="good"/>
102-
<valItem ident="bad"/>
103-
</valList>
104-
</attDef>
105-
</attList>
106-
</classSpec>
107-
49+
<elementSpec ident="list" mode="change">
50+
<attList>
51+
<attDef ident="type" mode="change">
52+
<constraintSpec mode="add" ident="a1" scheme="schematron">
53+
<constraint>
54+
<sch:rule context="tei:list/@type">
55+
<sch:assert test="count( ancestor-or-self::tei:list[1]/tei:item ) lt 2">list too short </sch:assert>
56+
</sch:rule>
57+
</constraint>
58+
</constraintSpec>
59+
<valList type="closed" mode="replace">
60+
<valItem ident="enumerated"/>
61+
<valItem ident="itemized"/>
62+
</valList>
63+
</attDef>
64+
</attList>
65+
</elementSpec>
66+
<classSpec ident="att.canonical" type="atts" mode="delete"/>
67+
<classSpec ident="att.global.rendition" type="atts" mode="change">
68+
<attList>
69+
<attDef ident="rendition" mode="delete"/>
70+
</attList>
71+
</classSpec>
72+
<macroSpec ident="macro.specialPara" mode="change">
73+
<content>
74+
<zeroOrMore xmlns="http://relaxng.org/ns/structure/1.0">
75+
<choice>
76+
<text/>
77+
<ref name="model.phrase"/>
78+
</choice>
79+
</zeroOrMore>
80+
</content>
81+
</macroSpec>
82+
<elementSpec ident="div" mode="change">
83+
<attList>
84+
<attDef ident="type" mode="delete"/>
85+
<attDef ident="rend" mode="change">
86+
<valList type="closed" mode="add">
87+
<valItem ident="i">
88+
<gloss xml:lang="en" versionDate="2014-01-12">italic</gloss>
89+
</valItem>
90+
<valItem ident="b">
91+
<gloss xml:lang="en" versionDate="2014-01-12">bold</gloss>
92+
</valItem>
93+
</valList>
94+
</attDef>
95+
</attList>
96+
</elementSpec>
97+
<classSpec mode="change" type="atts" ident="att.docStatus">
98+
<attList>
99+
<attDef ident="status" mode="change">
100+
<valList type="closed" mode="replace">
101+
<valItem ident="good"/>
102+
<valItem ident="bad"/>
103+
</valList>
104+
</attDef>
105+
</attList>
106+
</classSpec>
108107
</specGrp>
109108

110109
<p>Now add an element in another namespace, implementing parts

P5/Utilities/TEI-to-tei_customization.xslt

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353

5454
<xsl:variable name="revisionDesc">
5555
<revisionDesc>
56+
<change who="#sbauman.emt" when="2024-04-12">
57+
Added <gi>sch:rule</gi> elements PRN to avoid new warning
58+
about contextless Schematron.
59+
</change>
5660
<change who="#sbauman.emt" when="2023-06-06">
5761
<list>
5862
<item>Remove the <ident>altIdent-only-NCName</ident>

0 commit comments

Comments
 (0)