Skip to content

Commit

Permalink
Three changes:
Browse files Browse the repository at this point in the history
 * Use constraintDecl for Schematron namespace declarations in tei_customization
 * Use constraintDecl (instead of hack constraintSpecs) in the Guidelines (both en & fr)
 * Added CMC to fr Guidelines
  • Loading branch information
sydb committed Jan 18, 2025
1 parent ecf0b7c commit 5582ee1
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 22 deletions.
18 changes: 0 additions & 18 deletions P5/Source/Specs/TEI.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,6 @@
</alternate>
</sequence>
</content>
<constraintSpec ident="c1" scheme="schematron" xml:lang="en">
<constraint>
<sch:ns prefix="tei" uri="http://www.tei-c.org/ns/1.0"/>
<sch:ns prefix="xs" uri="http://www.w3.org/2001/XMLSchema"/>
</constraint>
</constraintSpec>
<constraintSpec ident="c2" scheme="schematron" xml:lang="en">
<constraint>
<sch:ns prefix="rng" uri="http://relaxng.org/ns/structure/1.0"/>
<sch:ns prefix="rna" uri="http://relaxng.org/ns/compatibility/annotations/1.0"/>
</constraint>
</constraintSpec>
<constraintSpec ident="c3" scheme="schematron" xml:lang="en">
<constraint>
<sch:ns prefix="sch" uri="http://purl.oclc.org/dsdl/schematron"/>
<sch:ns prefix="sch1x" uri="http://www.ascc.net/xml/schematron"/>
</constraint>
</constraintSpec>
<attList>
<attDef ident="version" usage="opt">
<desc versionDate="2018-01-24" xml:lang="en">specifies the version number of the TEI Guidelines against
Expand Down
15 changes: 13 additions & 2 deletions P5/Source/guidelines-en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ $Date$
$Id$
-->
<TEI xmlns="http://www.tei-c.org/ns/1.0"
xmlns:rng="http://relaxng.org/ns/structure/1.0" version="5.0"
rend="book" xml:lang="en">
xmlns:rng="http://relaxng.org/ns/structure/1.0"
xmlns:sch="http://purl.oclc.org/dsdl/schematron"
version="5.0" rend="book" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
Expand Down Expand Up @@ -68,6 +69,16 @@ $Id$
</publicationStmt>
<sourceDesc><p>A long history from P2 onwards. See further <ptr target="#PREFS"/></p></sourceDesc>
</fileDesc>
<encodingDesc>
<constraintDecl scheme="schematron" xml:lang="en">
<sch:ns prefix="tei" uri="http://www.tei-c.org/ns/1.0"/>
<sch:ns prefix="xs" uri="http://www.w3.org/2001/XMLSchema"/>
<sch:ns prefix="rng" uri="http://relaxng.org/ns/structure/1.0"/>
<sch:ns prefix="rna" uri="http://relaxng.org/ns/compatibility/annotations/1.0"/>
<sch:ns prefix="sch" uri="http://purl.oclc.org/dsdl/schematron"/>
<sch:ns prefix="sch1x" uri="http://www.ascc.net/xml/schematron"/>
</constraintDecl>
</encodingDesc>
<revisionDesc>
<change>
<date>$Date$.</date>
Expand Down
16 changes: 14 additions & 2 deletions P5/Source/guidelines-fr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ $Date$
$Id$
-->
<TEI xmlns="http://www.tei-c.org/ns/1.0"
xmlns:rng="http://relaxng.org/ns/structure/1.0" version="5.0"
rend="book" xml:lang="en">
xmlns:rng="http://relaxng.org/ns/structure/1.0"
xmlns:sch="http://purl.oclc.org/dsdl/schematron"
version="5.0" rend="book" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
Expand Down Expand Up @@ -68,6 +69,16 @@ $Id$
</publicationStmt>
<sourceDesc><p>A long history from P2 onwards. See further <ptr target="#PREFS"/></p></sourceDesc>
</fileDesc>
<encodingDesc>
<constraintDecl scheme="schematron" xml:lang="fr">
<sch:ns prefix="tei" uri="http://www.tei-c.org/ns/1.0"/>
<sch:ns prefix="xs" uri="http://www.w3.org/2001/XMLSchema"/>
<sch:ns prefix="rng" uri="http://relaxng.org/ns/structure/1.0"/>
<sch:ns prefix="rna" uri="http://relaxng.org/ns/compatibility/annotations/1.0"/>
<sch:ns prefix="sch" uri="http://purl.oclc.org/dsdl/schematron"/>
<sch:ns prefix="sch1x" uri="http://www.ascc.net/xml/schematron"/>
</constraintDecl>
</encodingDesc>
<revisionDesc>
<change>
<date>$Date$.</date>
Expand Down Expand Up @@ -113,6 +124,7 @@ $Id$
<include xmlns="http://www.w3.org/2001/XInclude" href="Guidelines/en/VE-Verse.xml"/>
<include xmlns="http://www.w3.org/2001/XInclude" href="Guidelines/en/DR-PerformanceTexts.xml"/>
<include xmlns="http://www.w3.org/2001/XInclude" href="Guidelines/en/TS-TranscriptionsofSpeech.xml"/>
<include xmlns="http://www.w3.org/2001/XInclude" href="Guidelines/en/CMC-ComputerMediatedCommunication.xml"/>
<include xmlns="http://www.w3.org/2001/XInclude" href="Guidelines/en/DI-PrintDictionaries.xml"/>
<include xmlns="http://www.w3.org/2001/XInclude" href="Guidelines/en/MS-ManuscriptDescription.xml"/>
<include xmlns="http://www.w3.org/2001/XInclude" href="Guidelines/en/PH-PrimarySources.xml"/>
Expand Down
4 changes: 4 additions & 0 deletions P5/Utilities/TEI-to-tei_customization.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,10 @@
<moduleRef key="namesdates" include="persName placeName orgName"/>
<xsl:comment> allow tables, figures, and formulæ </xsl:comment>
<moduleRef key="figures" except="notatedMusic"/>

<constraintDecl scheme="schematron" queryBinding="xslt2">
<sch:ns prefix="teix" uri="http://www.tei-c.org/ns/Examples"/>
</constraintDecl>

<constraintSpec scheme="schematron" ident="mode-child-sanity" xml:lang="en">
<constraint>
Expand Down

0 comments on commit 5582ee1

Please sign in to comment.