Skip to content

Commit

Permalink
Remove hard-coded to-be-deprecated version of @Calendar from all elem…
Browse files Browse the repository at this point in the history
…ents it appears in, replacing with membership in (as of yet non-existent) att.deprecatedCalendar.
  • Loading branch information
sydb committed Oct 16, 2023
1 parent 00324f3 commit 1c461d7
Show file tree
Hide file tree
Showing 63 changed files with 442 additions and 2,158 deletions.
42 changes: 7 additions & 35 deletions P5/Source/Specs/acquisition.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?><!--
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright TEI Consortium.
Dual-licensed under CC-by and BSD2 licences
See the file COPYING.txt for details
$Date$
$Id$
--><?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">
-->
<?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">
<gloss xml:lang="en" versionDate="2007-06-12">acquisition</gloss>
<gloss xml:lang="es" versionDate="2022-06-16">adquisición</gloss>
<gloss versionDate="2007-06-12" xml:lang="fr">acquisition</gloss>
Expand All @@ -22,43 +25,12 @@ institution.</desc>
<classes>
<memberOf key="att.global"/>
<memberOf key="att.datable"/>
<memberOf key="att.deprecatedCalendar"/>
</classes>
<content>
<macroRef key="macro.specialPara"/>
</content>
<attList>
<attDef ident="calendar" usage="opt" validUntil="2024-11-11">
<desc type="deprecationInfo" versionDate="2023-05-11" xml:lang="en">The <att>calendar</att> attribute will be removed from this element
as it will only be allowed on elements that represent dates with their content. This is because the <att>calendar</att> attribute
(unlike <att>datingMethod</att> defined in
<ident type="class">att.datable.custom</ident>) defines the calendar system of the date
in the original material defined by the parent element, <emph>not</emph> the calendar to
which the date is normalized.</desc>
<desc versionDate="2021-04-26" xml:lang="en">indicates one or more systems or calendars to which the
date represented by the content of this element belongs.</desc>
<desc versionDate="2007-12-20" xml:lang="ko">날짜 표현 시스템 또는 달력 표시 형식을 표시한다.</desc>
<desc versionDate="2007-05-02" xml:lang="zh-TW">指明該日期表示所使用的曆法計算系統。</desc>
<desc xml:lang="ja" versionDate="2019-02-03">この要素を含むコンテントにおける日付の暦やシステムを示す。</desc>
<desc versionDate="2009-01-06" xml:lang="fr">indique le système ou le calendrier auquel
appartient la date exprimée dans le contenu de l'élément.</desc>
<desc versionDate="2007-05-04" xml:lang="es">indica el sistema o calendario en que se muestra
una fecha.</desc>
<desc versionDate="2007-01-21" xml:lang="it">indica il sistema o calendario al quale la data
appartiene.</desc>
<datatype minOccurs="1" maxOccurs="unbounded">
<dataRef key="teidata.pointer"/>
</datatype>
<constraintSpec scheme="schematron" ident="calendar-check-acquisition">
<constraint>
<sch:rule 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>
</constraint>
</constraintSpec>
</attDef>
</attList>

<exemplum xml:lang="en">
<egXML xmlns="http://www.tei-c.org/ns/Examples" source="#UND">
<acquisition>Left to the <name type="place">Bodleian</name> by
Expand Down
40 changes: 7 additions & 33 deletions P5/Source/Specs/affiliation.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?><!--
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright TEI Consortium.
Dual-licensed under CC-by and BSD2 licences
See the file COPYING.txt for details
$Date$
$Id$
--><?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">
-->
<?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">
<gloss xml:lang="en" versionDate="2008-12-09">affiliation</gloss>
<gloss versionDate="2008-12-09" xml:lang="fr">affiliation</gloss>
<desc versionDate="2005-01-14" xml:lang="en">contains an informal description of a person's present or past affiliation with some
Expand All @@ -29,42 +32,13 @@
<memberOf key="att.datable"/>
<memberOf key="att.naming"/>
<memberOf key="att.typed"/>
<memberOf key="att.deprecatedCalendar"/>
</classes>
<content>
<macroRef key="macro.phraseSeq"/>
</content>
<attList>
<attDef ident="calendar" usage="opt" validUntil="2024-11-11">
<desc type="deprecationInfo" versionDate="2023-05-11" xml:lang="en">The <att>calendar</att> attribute will be removed from this element
as it will only be allowed on elements that represent dates with their content. This is because the <att>calendar</att> attribute
(unlike <att>datingMethod</att> defined in
<ident type="class">att.datable.custom</ident>) defines the calendar system of the date
in the original material defined by the parent element, <emph>not</emph> the calendar to
which the date is normalized.</desc>
<desc versionDate="2021-04-26" xml:lang="en">indicates one or more systems or calendars to which the
date represented by the content of this element belongs.</desc>
<desc versionDate="2007-12-20" xml:lang="ko">날짜 표현 시스템 또는 달력 표시 형식을 표시한다.</desc>
<desc versionDate="2007-05-02" xml:lang="zh-TW">指明該日期表示所使用的曆法計算系統。</desc>
<desc xml:lang="ja" versionDate="2019-02-03">この要素を含むコンテントにおける日付の暦やシステムを示す。</desc>
<desc versionDate="2009-01-06" xml:lang="fr">indique le système ou le calendrier auquel
appartient la date exprimée dans le contenu de l'élément.</desc>
<desc versionDate="2007-05-04" xml:lang="es">indica el sistema o calendario en que se muestra
una fecha.</desc>
<desc versionDate="2007-01-21" xml:lang="it">indica il sistema o calendario al quale la data
appartiene.</desc>
<datatype minOccurs="1" maxOccurs="unbounded">
<dataRef key="teidata.pointer"/>
</datatype>
<constraintSpec scheme="schematron" ident="calendar-check-affiliation">
<constraint>
<sch:rule 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>
</constraint>
</constraintSpec>
</attDef>



<attDef ident="type" usage="opt" mode="change">
Expand Down
40 changes: 7 additions & 33 deletions P5/Source/Specs/age.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?><!--
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright TEI Consortium.
Dual-licensed under CC-by and BSD2 licences
See the file COPYING.txt for details
$Date$
$Id$
--><?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="age">
-->
<?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="age">
<gloss xml:lang="en" versionDate="2008-12-09">age</gloss>
<gloss versionDate="2008-12-09" xml:lang="fr">âge</gloss>
<desc versionDate="2006-10-08" xml:lang="en">specifies the age of a person.</desc>
Expand All @@ -21,42 +24,13 @@
<memberOf key="att.datable"/>
<memberOf key="att.typed"/>
<memberOf key="att.dimensions"/>
<memberOf key="att.deprecatedCalendar"/>
</classes>
<content>
<macroRef key="macro.phraseSeq.limited"/>
</content>
<attList>
<attDef ident="calendar" usage="opt" validUntil="2024-11-11">
<desc type="deprecationInfo" versionDate="2023-05-11" xml:lang="en">The <att>calendar</att> attribute will be removed from this element
as it will only be allowed on elements that represent dates with their content. This is because the <att>calendar</att> attribute
(unlike <att>datingMethod</att> defined in
<ident type="class">att.datable.custom</ident>) defines the calendar system of the date
in the original material defined by the parent element, <emph>not</emph> the calendar to
which the date is normalized.</desc>
<desc versionDate="2021-04-26" xml:lang="en">indicates one or more systems or calendars to which the
date represented by the content of this element belongs.</desc>
<desc versionDate="2007-12-20" xml:lang="ko">날짜 표현 시스템 또는 달력 표시 형식을 표시한다.</desc>
<desc versionDate="2007-05-02" xml:lang="zh-TW">指明該日期表示所使用的曆法計算系統。</desc>
<desc xml:lang="ja" versionDate="2019-02-03">この要素を含むコンテントにおける日付の暦やシステムを示す。</desc>
<desc versionDate="2009-01-06" xml:lang="fr">indique le système ou le calendrier auquel
appartient la date exprimée dans le contenu de l'élément.</desc>
<desc versionDate="2007-05-04" xml:lang="es">indica el sistema o calendario en que se muestra
una fecha.</desc>
<desc versionDate="2007-01-21" xml:lang="it">indica il sistema o calendario al quale la data
appartiene.</desc>
<datatype minOccurs="1" maxOccurs="unbounded">
<dataRef key="teidata.pointer"/>
</datatype>
<constraintSpec scheme="schematron" ident="calendar-check-age">
<constraint>
<sch:rule 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>
</constraint>
</constraintSpec>
</attDef>



<attDef ident="type" usage="opt" mode="change">
Expand Down
42 changes: 7 additions & 35 deletions P5/Source/Specs/altIdentifier.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?><!--
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright TEI Consortium.
Dual-licensed under CC-by and BSD2 licences
See the file COPYING.txt for details
$Date$
$Id$
--><?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="ALTIDENTIFIER" ident="altIdentifier">
-->
<?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="ALTIDENTIFIER" ident="altIdentifier">
<gloss versionDate="2005-01-14" xml:lang="en">alternative identifier</gloss>
<gloss versionDate="2007-12-20" xml:lang="ko">대체 확인소</gloss>
<gloss versionDate="2007-05-02" xml:lang="zh-TW">替換識別符碼</gloss>
Expand All @@ -25,6 +28,7 @@
<memberOf key="att.global"/>
<memberOf key="att.typed"/>
<memberOf key="att.datable"/>
<memberOf key="att.deprecatedCalendar"/>
</classes>

<content>
Expand All @@ -37,39 +41,7 @@
<elementRef key="note" minOccurs="0"/>
</sequence>
</content>
<attList>
<attDef ident="calendar" usage="opt" validUntil="2024-11-11">
<desc type="deprecationInfo" versionDate="2023-05-11" xml:lang="en">The <att>calendar</att> attribute will be removed from this element
as it will only be allowed on elements that represent dates with their content. This is because the <att>calendar</att> attribute
(unlike <att>datingMethod</att> defined in
<ident type="class">att.datable.custom</ident>) defines the calendar system of the date
in the original material defined by the parent element, <emph>not</emph> the calendar to
which the date is normalized.</desc>
<desc versionDate="2021-04-26" xml:lang="en">indicates one or more systems or calendars to which the
date represented by the content of this element belongs.</desc>
<desc versionDate="2007-12-20" xml:lang="ko">날짜 표현 시스템 또는 달력 표시 형식을 표시한다.</desc>
<desc versionDate="2007-05-02" xml:lang="zh-TW">指明該日期表示所使用的曆法計算系統。</desc>
<desc xml:lang="ja" versionDate="2019-02-03">この要素を含むコンテントにおける日付の暦やシステムを示す。</desc>
<desc versionDate="2009-01-06" xml:lang="fr">indique le système ou le calendrier auquel
appartient la date exprimée dans le contenu de l'élément.</desc>
<desc versionDate="2007-05-04" xml:lang="es">indica el sistema o calendario en que se muestra
una fecha.</desc>
<desc versionDate="2007-01-21" xml:lang="it">indica il sistema o calendario al quale la data
appartiene.</desc>
<datatype minOccurs="1" maxOccurs="unbounded">
<dataRef key="teidata.pointer"/>
</datatype>
<constraintSpec scheme="schematron" ident="calendar-check-altIdentifier">
<constraint>
<sch:rule 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>
</constraint>
</constraintSpec>
</attDef>
</attList>

<exemplum xml:lang="en">
<egXML xmlns="http://www.tei-c.org/ns/Examples" source="#UND">
<altIdentifier>
Expand Down
40 changes: 7 additions & 33 deletions P5/Source/Specs/application.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?><!--
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright TEI Consortium.
Dual-licensed under CC-by and BSD2 licences
See the file COPYING.txt for details
$Date$
$Id$
--><?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" ident="application" module="header">
-->
<?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" ident="application" module="header">
<desc versionDate="2007-07-31" xml:lang="en">provides information about an application which has acted upon the document.</desc>
<desc versionDate="2007-12-20" xml:lang="ko">문서에 사용한 애플리케이션에 관한 정보를 제시한다.</desc>
<desc versionDate="2008-04-06" xml:lang="es">proporciona información sobre la aplicación que ha
Expand All @@ -19,6 +22,7 @@ $Id$
<memberOf key="att.typed"/>
<memberOf key="att.datable"/>
<memberOf key="model.applicationLike"/>
<memberOf key="att.deprecatedCalendar"/>
</classes>
<content>
<sequence>
Expand All @@ -36,37 +40,7 @@ $Id$
</sequence>
</content>
<attList>
<attDef ident="calendar" usage="opt" validUntil="2024-11-11">
<desc type="deprecationInfo" versionDate="2023-05-11" xml:lang="en">The <att>calendar</att> attribute will be removed from this element
as it will only be allowed on elements that represent dates with their content. This is because the <att>calendar</att> attribute
(unlike <att>datingMethod</att> defined in
<ident type="class">att.datable.custom</ident>) defines the calendar system of the date
in the original material defined by the parent element, <emph>not</emph> the calendar to
which the date is normalized.</desc>
<desc versionDate="2021-04-26" xml:lang="en">indicates one or more systems or calendars to which the
date represented by the content of this element belongs.</desc>
<desc versionDate="2007-12-20" xml:lang="ko">날짜 표현 시스템 또는 달력 표시 형식을 표시한다.</desc>
<desc versionDate="2007-05-02" xml:lang="zh-TW">指明該日期表示所使用的曆法計算系統。</desc>
<desc xml:lang="ja" versionDate="2019-02-03">この要素を含むコンテントにおける日付の暦やシステムを示す。</desc>
<desc versionDate="2009-01-06" xml:lang="fr">indique le système ou le calendrier auquel
appartient la date exprimée dans le contenu de l'élément.</desc>
<desc versionDate="2007-05-04" xml:lang="es">indica el sistema o calendario en que se muestra
una fecha.</desc>
<desc versionDate="2007-01-21" xml:lang="it">indica il sistema o calendario al quale la data
appartiene.</desc>
<datatype minOccurs="1" maxOccurs="unbounded">
<dataRef key="teidata.pointer"/>
</datatype>
<constraintSpec scheme="schematron" ident="calendar-check-application">
<constraint>
<sch:rule 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>
</constraint>
</constraintSpec>
</attDef>



<attDef ident="ident" usage="req">
Expand Down
Loading

0 comments on commit 1c461d7

Please sign in to comment.