From d63ddcb15bdf74f41b9df4883f682c5687fb93e2 Mon Sep 17 00:00:00 2001
From: Hugh Cayless
Date: Tue, 18 Oct 2022 14:20:52 -0400
Subject: [PATCH 01/50] Check if core props are available.
---
xlsx/xlsxtotei.xsl | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/xlsx/xlsxtotei.xsl b/xlsx/xlsxtotei.xsl
index 3ab193cf3..812c701c9 100644
--- a/xlsx/xlsxtotei.xsl
+++ b/xlsx/xlsxtotei.xsl
@@ -101,8 +101,7 @@
-
+
This does not look like an Office OpenXML workbook. The root
From 239a71ef2142beb85a4b1510cec9b5b93b5f63b5 Mon Sep 17 00:00:00 2001
From: Syd Bauman
Date: Sun, 1 Oct 2023 16:48:30 -0400
Subject: [PATCH 02/50] Replace tei:minOmaxO() and both
tei:generateIndicators() functions (one for RELAXNG, one for DTD) with a new
function, tei:norMinMax(); should be no change to output; passes both Test/
and Test2/.
---
odds/odd2dtd.xsl | 34 ++++----------
odds/teiodds.xsl | 117 +++++++++++++++++++++++++++++------------------
2 files changed, 82 insertions(+), 69 deletions(-)
diff --git a/odds/odd2dtd.xsl b/odds/odd2dtd.xsl
index 36ab98211..62df4dc82 100644
--- a/odds/odd2dtd.xsl
+++ b/odds/odd2dtd.xsl
@@ -1519,9 +1519,9 @@ of this software, even if advised of the possibility of such damage.
-
-
-
+
+
+
-
-
-
+
+
+
@@ -1854,9 +1854,9 @@ of this software, even if advised of the possibility of such damage.
-
-
-
+
+
+
@@ -1888,22 +1888,6 @@ of this software, even if advised of the possibility of such damage.
-
-
-
-
-
-
-
-
- *
- ?
- *
- +
-
-
-
-
diff --git a/odds/teiodds.xsl b/odds/teiodds.xsl
index 6990b6ae7..366507105 100644
--- a/odds/teiodds.xsl
+++ b/odds/teiodds.xsl
@@ -329,7 +329,8 @@ of this software, even if advised of the possibility of such damage.
-
+
+
@@ -1489,9 +1490,9 @@ select="$makeDecls"/>
-
-
-
+
+
+
@@ -2067,7 +2068,8 @@ select="$makeDecls"/>
-
+
+
@@ -2099,7 +2101,8 @@ select="$makeDecls"/>
-
+
+
@@ -2122,8 +2125,12 @@ select="$makeDecls"/>
+
+
+
-
+
+
@@ -2203,9 +2210,6 @@ select="$makeDecls"/>
-
-
-
@@ -2258,27 +2262,46 @@ select="$makeDecls"/>
-
-
-
-
-
-
-
+
+
+ “normalized minimum and maximum occurences”, pronounced almost as “Norman Max”
+ Input: an element node, theoretically a member of att.repeatable
+ Output: a sequence of 4 items:
+
+ - 1) minOccurs as an integer
+ - 2) maxOccurs as an integer, with -1 for "unbounded"
+ - 3) a string that conforms to xs:NCName, the name of the RELAX NG element that
+ should be used to generate this number of occurences, if any; one of "optional",
+ "oneOrMore", "zeroOrMore", or '' (the empty string)
+ - 4) a 0- or 1-character long string, the occurence
+ indicator that should be used to generate this number of
+ occurences in a DTD, if any; one of '?', '+', '*', or ''
+ (the empty string)
+
+
+
+
+
+
-
+
-
+
-
-
+
+
+
- The default value of @maxOccurs is 1. You cannot have a @minOccurs greater than the @maxOccurs.
-
+
+ The default value of @maxOccurs is 1. You cannot have a @minOccurs greater than the @maxOccurs.
+
+
+
+
@@ -2287,27 +2310,33 @@ select="$makeDecls"/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- optional
- oneOrMore
- zeroOrMore
-
-
+
+
+
+ optional
+ oneOrMore
+ zeroOrMore
+
+
+
+
+
+
+ *
+ ?
+ *
+ +
+
+
+
+
From 3ca367ea03e809f6307cd1768e8bc8dcf8af22c2 Mon Sep 17 00:00:00 2001
From: Syd Bauman
Date: Sun, 1 Oct 2023 16:57:19 -0400
Subject: [PATCH 03/50] Oops, spoke too soon: was not passing Test/, just
Test2/. Now passing both sets of tests.
---
odds/odd2dtd.xsl | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/odds/odd2dtd.xsl b/odds/odd2dtd.xsl
index 62df4dc82..6f0f06039 100644
--- a/odds/odd2dtd.xsl
+++ b/odds/odd2dtd.xsl
@@ -1643,7 +1643,7 @@ of this software, even if advised of the possibility of such damage.
,
)
-
+
@@ -1654,7 +1654,7 @@ of this software, even if advised of the possibility of such damage.
(
)
-
+
@@ -1666,7 +1666,7 @@ of this software, even if advised of the possibility of such damage.
-
+
(
)
@@ -1693,8 +1693,7 @@ of this software, even if advised of the possibility of such damage.
-
+
From a5d1c3ca64450ca71aa61aafd8e1cddea52aa69d Mon Sep 17 00:00:00 2001
From: Syd Bauman
Date: Sat, 7 Oct 2023 09:55:31 -0400
Subject: [PATCH 04/50] Code for supporting minOccurs= and maxOccurs= on
, mostly untested because of #631. This comit is *not* ready for
prime time.
---
Test2/build_odd.xml | 1 +
Test2/expected-results/testAttValQuant.rng | 188 +++++---
Test2/expected-results/testNonTeiOdd1.rng | 2 +
Test2/expected-results/testPure1.rng | 365 +++++++++++----
Test2/inputFiles/testPure1.odd | 432 +++++++++---------
.../validInstances/testPure1ValidInstance.xml | 138 ++++++
odds/odd2relax.xsl | 125 +++--
odds/teiodds.xsl | 330 +++++++------
8 files changed, 1007 insertions(+), 574 deletions(-)
diff --git a/Test2/build_odd.xml b/Test2/build_odd.xml
index 277f46543..6681ef10b 100644
--- a/Test2/build_odd.xml
+++ b/Test2/build_odd.xml
@@ -96,6 +96,7 @@
+
diff --git a/Test2/expected-results/testAttValQuant.rng b/Test2/expected-results/testAttValQuant.rng
index eb6be5e95..b28ed4a77 100644
--- a/Test2/expected-results/testAttValQuant.rng
+++ b/Test2/expected-results/testAttValQuant.rng
@@ -229,7 +229,9 @@
- specifies the degree of statistical confidence (between zero and one) that a value falls within the range specified by @min
and @max
, or the proportion of observed values that fall within that range.
+ specifies the degree of statistical confidence (between zero and one) that a value falls within the range specified by @min
and @max
, or the proportion of observed values that fall within that range.
@@ -321,7 +323,8 @@ Sample values include: 1] all; 2] most; 3] range
- points to a <handNote>
element describing the hand considered responsible for the content of the element concerned.
+ points to a <handNote>
element describing the hand considered responsible for the content of the element concerned.
\S+
@@ -347,7 +350,8 @@ Sample values include: 1] all; 2] most; 3] range
- (canonical reference) specifies the destination of the pointer by supplying a canonical reference expressed using the scheme defined in a <refsDecl>
element in the TEI header
+ (canonical reference) specifies the destination of the pointer by supplying a canonical reference expressed using the scheme defined in a <refsDecl>
element in the TEI header
@@ -508,7 +512,9 @@ Sample values include: 1] all; 2] most; 3] range
- supplies pointers to one or more definitions of named periods of time (typically <category>
s or <calendar>
s) within which the datable item is understood to have occurred.
+ supplies pointers to one or more definitions of named periods of time (typically <category>
s or <calendar>
s) within which the datable item is understood to have occurred.
@@ -527,7 +533,9 @@ Sample values include: 1] all; 2] most; 3] range
- provides a pointer to a definition of, and/or general information about, (a) an information container (element or attribute) or (b) a value of an information container (element content or attribute value), by referencing an external taxonomy or ontology. If @valueDatcat
is present in the immediate context, this attribute takes on role (a), while @valueDatcat
performs role (b).
+ provides a pointer to a definition of, and/or general information about, (a) an information container (element or attribute) or (b) a value of an information container (element content or attribute value), by referencing an external taxonomy or ontology. If @valueDatcat
is present in the immediate context, this attribute takes on role (a), while @valueDatcat
performs role (b).
@@ -541,7 +549,8 @@ Sample values include: 1] all; 2] most; 3] range
- provides a definition of, and/or general information about a value of an information container (element content or attribute value), by reference to an external taxonomy or ontology. Used especially where a contrast with @datcat
is needed.
+ provides a definition of, and/or general information about a value of an information container (element content or attribute value), by reference to an external taxonomy or ontology. Used especially where a contrast with @datcat
is needed.
@@ -555,7 +564,8 @@ Sample values include: 1] all; 2] most; 3] range
- provides a definition of, and/or general information about, information structure of an object referenced or modeled by the containing element, by reference to an external taxonomy or ontology. This attribute has the characteristics of the @datcat
attribute, except that it addresses not its containing element, but an object that is being referenced or modeled by its containing element.
+ provides a definition of, and/or general information about, information structure of an object referenced or modeled by the containing element, by reference to an external taxonomy or ontology. This attribute has the characteristics of the @datcat
attribute, except that it addresses not its containing element, but an object that is being referenced or modeled by its containing element.
@@ -868,6 +878,7 @@ Suggested values include: 1] internal; 2] external; 3] conjecture
(language) indicates the language of the element content using a tag generated according to BCP 47.
@@ -913,7 +924,8 @@ Suggested values include: 1] internal; 2] external; 3] conjecture
- points to a full description of the scribe concerned, typically supplied by a <person>
element elsewhere in the description.
+ points to a full description of the scribe concerned, typically supplied by a <person>
element elsewhere in the description.
@@ -939,7 +951,8 @@ Suggested values include: 1] internal; 2] external; 3] conjecture
- points to a full description of the script or writing style used by this hand, typically supplied by a <scriptNote>
element elsewhere in the description.
+ points to a full description of the script or writing style used by this hand, typically supplied by a <scriptNote>
element elsewhere in the description.
@@ -1107,7 +1120,9 @@ Suggested values include: 1] m (metre); 2] kg (kilogram); 3] s (second); 4] Hz (
- points to a unique identifier stored in the @xml:id
of a <unitDef>
element that defines a unit of measure.
+ points to a unique identifier stored in the @xml:id
of a <unitDef>
element that defines a unit of measure.
\S+
@@ -1284,7 +1299,9 @@ Suggested values include: 1] top; 2] bottom; 3] margin; 4] opposite; 5] overleaf
- specifies the language of the content to be found at the destination referenced by @target
, using a language tag generated according to specifies the language of the content to be found at the destination referenced by @target
, using a language tag generated according to BCP 47.
@@ -1429,7 +1446,8 @@ The element indicated by @spanTo () must follow
- supplies a version number for the style language provided in @scheme
.
+ supplies a version number for the style language provided in @scheme
.
[\d]+[a-z]*[\d]*(\.[\d]+[a-z]*[\d]*){0,3}
@@ -1547,7 +1565,8 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
- specifies the starting point of the range of units indicated by the @unit
attribute.
+ specifies the starting point of the range of units indicated by the @unit
attribute.
[^\p{C}\p{Z}]+
@@ -1557,7 +1576,8 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
- specifies the end-point of the range of units indicated by the @unit
attribute.
+ specifies the end-point of the range of units indicated by the @unit
attribute.
[^\p{C}\p{Z}]+
@@ -3378,7 +3398,8 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
- A @formula
is provided to describe a mathematical calculation such as a conversion between measurement systems.
+ A @formula
is provided to describe a mathematical calculation such as a conversion between measurement systems.
@@ -3389,7 +3410,8 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
- indicates one or more locations by pointing to a <place>
element or other canonical description.
+ indicates one or more locations by pointing to a <place>
element or other canonical description.
@@ -3475,11 +3497,13 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
Suggested values include: 1] page; 2] column; 3] line; 4] book; 5] poem; 6] canto; 7] speaker; 8] stanza; 9] act; 10] scene; 11] section; 12] absent; 13] unnumbered
page
- physical page breaks (synonymous with the <pb>
element).
+ physical page breaks (synonymous with the <pb>
element).
column
column breaks.
line
- line breaks (synonymous with the <lb>
element).
+ line breaks (synonymous with the <lb>
element).
book
any units termed book, liber, etc.
poem
@@ -3511,10 +3535,10 @@ Suggested values include: 1] page; 2] column; 3] line; 4] book; 5] poem; 6] cant
(paragraph) marks paragraphs in prose. [3.1. Paragraphs 7.2.5. Speech Contents]
Abstract model violation: Paragraphs may not occur inside other paragraphs or ab elements.
@@ -3522,10 +3546,10 @@ Suggested values include: 1] page; 2] column; 3] line; 4] book; 5] poem; 6] cant
Abstract model violation: Lines may not contain higher-level structural elements such as div, p, or ab, unless p is a child of figure or note, or is a descendant of floatingText.
@@ -3727,9 +3751,9 @@ Suggested values include: 1] spoken (spoken); 2] thought (thought); 3] written (
(description) contains a short description of the purpose, function, or use of its parent element, or when the parent is a documentation element, describes or defines the object being documented. [22.4.1. Description of Components]
Information about a
@@ -3824,10 +3848,10 @@ Suggested values include: 1] deprecationInfo (deprecation information)
When target= is
present, neither from= nor to= should be.
@@ -3842,10 +3866,10 @@ Suggested values include: 1] deprecationInfo (deprecation information)
When from= is present, the to=
attribute of is required.
@@ -3860,10 +3884,10 @@ Suggested values include: 1] deprecationInfo (deprecation information)
When to= is present, the from=
attribute of is required.
@@ -3893,12 +3917,10 @@ Suggested values include: 1] deprecationInfo (deprecation information)
(choice) groups a number of alternative encodings for the same point in a text. [3.5. Simple Editorial Changes]
-
-
-
-
-
-
+
+
+
+
@@ -4301,9 +4323,10 @@ Sample values include: 1] suspension (suspension); 2] contraction (contraction);
(pointer) defines a pointer to another location. [3.7. Simple Links and Cross-References 16.1. Links]
- Only one of the
+ Only one of the
attributes @target and @cRef may be supplied on .
@@ -4321,9 +4344,10 @@ attributes @target and @cRef may be supplied on .
(reference) defines a reference to another location, possibly modified by additional text or comment. [3.7. Simple Links and Cross-References 16.1. Links]
- Only one of the
+ Only one of the
attributes @target' and @cRef' may be supplied on
@@ -4390,9 +4414,9 @@ attributes @target and @cRef may be supplied on .
The content of a "gloss" list should include a sequence of one or more pairs of a label element followed by an item element
@@ -4407,7 +4431,8 @@ attributes @target and @cRef may be supplied on .
Suggested values include: 1] gloss (gloss); 2] index (index); 3] instructions (instructions); 4] litany (litany); 5] syllogism (syllogism)
gloss
- (gloss) each list item glosses some term or concept, which is given by a <label>
element preceding the list item.
+ (gloss) each list item glosses some term or concept, which is given by a <label>
element preceding the list item.
index
(index) each list item is an entry in an index such as the alphabetical topical index at the back of a print volume.
instructions
@@ -4592,6 +4617,7 @@ Suggested values include: 1] gloss (gloss); 2] index (index); 3] instructions (i
The encoding used to encode the binary data. If not specified, this is assumed to be Base64.
@@ -5080,16 +5106,15 @@ Sample values include: 1] main; 2] sub (subordinate); 3] alt (alternate); 4] sho
If the @target attribute on is used, the
relatedItem element must be empty
A relatedItem element should have either a 'target' attribute
or a child element to indicate the related bibliographic item
@@ -5121,10 +5146,10 @@ relatedItem element must be empty
Abstract model violation: Lines may not contain lines or lg elements.
@@ -5173,20 +5198,20 @@ relatedItem element must be empty
An lg element
must contain at least one child l, lg, or gap element.
Abstract model violation: Lines may not contain line groups.
@@ -5293,7 +5318,8 @@ Suggested values include: 1] setting; 2] entrance; 3] exit; 4] business; 5] nove
- (TEI corpus) contains the whole of a TEI encoded corpus, comprising a single corpus header and one or more <TEI>
elements, each containing a single text header and a text. [4. Default Text Structure 15.1. Varieties of Composite Text]
+ (TEI corpus) contains the whole of a TEI encoded corpus, comprising a single corpus header and one or more <TEI>
elements, each containing a single text header and a text. [4. Default Text Structure 15.1. Varieties of Composite Text]
@@ -5377,7 +5403,8 @@ Sample values include: 1] index; 2] toc; 3] figlist; 4] tablist
- (use) supplies an XPath selection pattern using the syntax defined in . The XPath pattern is relative to the context given in @match
, which will either be a sibling attribute in the case of `<citeStructure>` or on the parent `<citeStructure>` in the case of `<citeData>`.
+ (use) supplies an XPath selection pattern using the syntax defined in . The XPath pattern is relative to the context given in @match
, which will either be a sibling attribute in the case of `<citeStructure>` or on the parent `<citeStructure>` in the case of `<citeData>`.
@@ -5393,7 +5420,8 @@ Sample values include: 1] index; 2] toc; 3] figlist; 4] tablist
- specifies a replacement pattern, that is, the skeleton of a relative or absolute URI containing references to groups in the @matchPattern
which, once subpattern substitution has been performed, complete the URI.
+ specifies a replacement pattern, that is, the skeleton of a relative or absolute URI containing references to groups in the @matchPattern
which, once subpattern substitution has been performed, complete the URI.
@@ -5579,6 +5607,7 @@ Suggested values include: 1] ISBN; 2] ISSN; 3] DOI; 4] URI; 5] VIAF; 6] ESTC; 7]
ISBN
International Standard Book Number: a 13- or (if assigned prior to 2007) 10-digit identifying number assigned by the publishing industry to a published book or similar item, registered with the International ISBN Agency.
ISSN
@@ -5587,6 +5616,7 @@ Suggested values include: 1] ISBN; 2] ISSN; 3] DOI; 4] URI; 5] VIAF; 6] ESTC; 7]
Digital Object Identifier: a unique string of letters and numbers assigned to an electronic document.
URI
Uniform Resource Identifier: a string of characters to uniquely identify a resource, following the syntax of RFC 3986.
VIAF
A data number in the Virtual Internet Authority File assigned to link different names in catalogs around the world for the same entity.
@@ -5877,10 +5907,10 @@ Suggested values include: 1] ISBN; 2] ISSN; 3] DOI; 4] URI; 5] VIAF; 6] ESTC; 7]
-
On , either the @marks attribute should be used, or a paragraph of description provided
@@ -6014,7 +6044,8 @@ On , either the @marks attribute should be used, or a paragraph of descri
- indicates whether the element types listed exhaustively include all those found within <text>
, or represent only a subset.
+ indicates whether the element types listed exhaustively include all those found within <text>
, or represent only a subset.
@@ -6028,7 +6059,8 @@ On , either the @marks attribute should be used, or a paragraph of descri
- (generic identifier) specifies the name (generic identifier) of the element indicated by the tag, within the namespace indicated by the parent <namespace>
element.
+ (generic identifier) specifies the name (generic identifier) of the element indicated by the tag, within the namespace indicated by the parent <namespace>
element.
@@ -6039,7 +6071,8 @@ On , either the @marks attribute should be used, or a paragraph of descri
- (with unique identifier) specifies the number of occurrences of this element within the text which bear a distinct value for the global @xml:id
attribute.
+ (with unique identifier) specifies the number of occurrences of this element within the text which bear a distinct value for the global @xml:id
attribute.
@@ -6079,7 +6112,8 @@ Sample values include: 1] first-line; 2] first-letter; 3] before; 4] after
- contains a selector or series of selectors specifying the elements to which the contained style description applies, expressed in the language specified in the @scheme
attribute.
+ contains a selector or series of selectors specifying the elements to which the contained style description applies, expressed in the language specified in the @scheme
attribute.
@@ -6145,28 +6179,34 @@ Sample values include: 1] first-line; 2] first-letter; 3] before; 4] after
- (match) supplies an XPath selection pattern using the syntax defined in which identifies a set of nodes which are citable structural components. The expression may be absolute (beginning with `/`) or relative. @match
on a <citeStructure>
without a <citeStructure>
parent must be an absolute XPath. If it is relative, its context is set by the @match
of the parent <citeStructure>
.
+ (match) supplies an XPath selection pattern using the syntax defined in which identifies a set of nodes which are citable structural components. The expression may be absolute (beginning with `/`) or relative. @match
on a <citeStructure>
without a <citeStructure>
parent must be an absolute XPath. If it is relative, its context is set by the @match
of the parent <citeStructure>
.
-
An XPath in @match on the outer must start with '/'.
-
An XPath in @match must not start with '/' except on the outer .
- (unit) describes the structural unit indicated by the <citeStructure>
.
+ (unit) describes the structural unit indicated by the <citeStructure>
.
Sample values include: 1] book; 2] chapter; 3] entry; 4] poem; 5] letter; 6] line; 7] section; 8] verse; 9] volume
[^\p{C}\p{Z}]+
@@ -6334,7 +6374,8 @@ Sample values include: 1] book; 2] chapter; 3] entry; 4] poem; 5] letter; 6] lin
- (category description) describes some category within a taxonomy or text typology, either in the form of a brief prose description or in terms of the situational parameters used by the TEI formal <textDesc>
. [2.3.7. The Classification Declaration]
+ (category description) describes some category within a taxonomy or text typology, either in the form of a brief prose description or in terms of the situational parameters used by the TEI formal <textDesc>
. [2.3.7. The Classification Declaration]
@@ -6349,7 +6390,8 @@ Sample values include: 1] book; 2] chapter; 3] entry; 4] poem; 5] letter; 6] lin
- (geographic coordinates declaration) documents the notation and the datum used for geographic coordinates expressed as content of the <geo>
element elsewhere within the document. [2.3.8. The Geographic Coordinates Declaration]
+ (geographic coordinates declaration) documents the notation and the datum used for geographic coordinates expressed as content of the <geo>
element elsewhere within the document. [2.3.8. The Geographic Coordinates Declaration]
@@ -6422,13 +6464,15 @@ Suggested values include: 1] WGS84 (World Geodetic System); 2] MGRS (Military Gr
- indicates a source unit of measure that is to be converted into another unit indicated in @toUnit
.
+ indicates a source unit of measure that is to be converted into another unit indicated in @toUnit
.
\S+
- the target unit of measurement for a conversion from a source unit referenced in @fromUnit
.
+ the target unit of measurement for a conversion from a source unit referenced in @fromUnit
.
\S+
@@ -6540,7 +6584,9 @@ Suggested values include: 1] WGS84 (World Geodetic System); 2] MGRS (Military Gr
(identifier) Supplies a language code constructed as defined in BCP 47 which is used to identify the language documented by this element, and which is referenced by the global @xml:lang
attribute.
+ xmlns:rng="http://relaxng.org/ns/structure/1.0"
+ href="https://tools.ietf.org/html/bcp47">BCP 47 which is used to identify the language documented by this element, and which is referenced by the global @xml:lang
attribute.
@@ -6585,7 +6631,8 @@ Suggested values include: 1] WGS84 (World Geodetic System); 2] MGRS (Military Gr
- identifies the controlled vocabulary within which the set of keywords concerned is defined, for example by a <taxonomy>
element, or by some other resource.
+ identifies the controlled vocabulary within which the set of keywords concerned is defined, for example by a <taxonomy>
element, or by some other resource.
\S+
@@ -6600,7 +6647,8 @@ Suggested values include: 1] WGS84 (World Geodetic System); 2] MGRS (Military Gr
- identifies the classification system in use, as defined by, e.g. a <taxonomy>
element, or some other resource.
+ identifies the classification system in use, as defined by, e.g. a <taxonomy>
element, or some other resource.
\S+
@@ -6616,7 +6664,8 @@ Suggested values include: 1] WGS84 (World Geodetic System); 2] MGRS (Military Gr
- identifies the classification scheme within which the set of categories concerned is defined, for example by a <taxonomy>
element, or by some other resource.
+ identifies the classification scheme within which the set of categories concerned is defined, for example by a <taxonomy>
element, or by some other resource.
\S+
@@ -6786,7 +6835,8 @@ Suggested values include: 1] sent; 2] received; 3] transmitted; 4] redirected; 5
- indicates whether the ordering of its child <change>
elements is to be considered significant or not
+ indicates whether the ordering of its child <change>
elements is to be considered significant or not
@@ -6795,7 +6845,10 @@ Suggested values include: 1] sent; 2] received; 3] transmitted; 4] redirected; 5
- (TEI document) contains a single TEI-conformant document, combining a single TEI header with one or more members of the model.resource class. Multiple <TEI>
elements may be combined within a <TEI>
(or <teiCorpus>
) element. [4. Default Text Structure 15.1. Varieties of Composite Text]
+ (TEI document) contains a single TEI-conformant document, combining a single TEI header with one or more members of the model.resource class. Multiple <TEI>
elements may be combined within a <TEI>
(or <teiCorpus>
) element. [4. Default Text Structure 15.1. Varieties of Composite Text]
@@ -7118,10 +7171,10 @@ Suggested values include: 1] sent; 2] received; 3] transmitted; 4] redirected; 5
Abstract model violation: Lines may not contain higher-level structural elements such as div, unless div is a descendant of floatingText.
@@ -7129,10 +7182,10 @@ Suggested values include: 1] sent; 2] received; 3] transmitted; 4] redirected; 5
Abstract model violation: p and ab may not contain higher-level structural elements such as div, unless div is a descendant of floatingText.
@@ -7584,7 +7637,8 @@ Suggested values include: 1] main (main); 2] sub (subordinate); 3] alt (alternat
- global empty <test>
element for (you guessed it) testing
+ global empty <test>
element for (you guessed it) testing
diff --git a/Test2/expected-results/testNonTeiOdd1.rng b/Test2/expected-results/testNonTeiOdd1.rng
index c9c4b2a27..c0ae33e2e 100644
--- a/Test2/expected-results/testNonTeiOdd1.rng
+++ b/Test2/expected-results/testNonTeiOdd1.rng
@@ -30,6 +30,7 @@
(Division of a document; used as the root for content blocks.) The core container element for a content block. This may also nest, to provide subsections.
Image element. May be rendered inline or as a block, depending on where it appears in the document structure.
-
-
-
-
-
-
-
-
-
@@ -246,7 +237,9 @@
- specifies the degree of statistical confidence (between zero and one) that a value falls within the range specified by @min
and @max
, or the proportion of observed values that fall within that range.
+ specifies the degree of statistical confidence (between zero and one) that a value falls within the range specified by @min
and @max
, or the proportion of observed values that fall within that range.
@@ -338,7 +331,8 @@ Sample values include: 1] all; 2] most; 3] range
- points to a <handNote>
element describing the hand considered responsible for the content of the element concerned.
+ points to a <handNote>
element describing the hand considered responsible for the content of the element concerned.
\S+
@@ -364,7 +358,8 @@ Sample values include: 1] all; 2] most; 3] range
- (canonical reference) specifies the destination of the pointer by supplying a canonical reference expressed using the scheme defined in a <refsDecl>
element in the TEI header
+ (canonical reference) specifies the destination of the pointer by supplying a canonical reference expressed using the scheme defined in a <refsDecl>
element in the TEI header
@@ -525,7 +520,9 @@ Sample values include: 1] all; 2] most; 3] range
- supplies pointers to one or more definitions of named periods of time (typically <category>
s or <calendar>
s) within which the datable item is understood to have occurred.
+ supplies pointers to one or more definitions of named periods of time (typically <category>
s or <calendar>
s) within which the datable item is understood to have occurred.
@@ -544,7 +541,9 @@ Sample values include: 1] all; 2] most; 3] range
- provides a pointer to a definition of, and/or general information about, (a) an information container (element or attribute) or (b) a value of an information container (element content or attribute value), by referencing an external taxonomy or ontology. If @valueDatcat
is present in the immediate context, this attribute takes on role (a), while @valueDatcat
performs role (b).
+ provides a pointer to a definition of, and/or general information about, (a) an information container (element or attribute) or (b) a value of an information container (element content or attribute value), by referencing an external taxonomy or ontology. If @valueDatcat
is present in the immediate context, this attribute takes on role (a), while @valueDatcat
performs role (b).
@@ -558,7 +557,8 @@ Sample values include: 1] all; 2] most; 3] range
- provides a definition of, and/or general information about a value of an information container (element content or attribute value), by reference to an external taxonomy or ontology. Used especially where a contrast with @datcat
is needed.
+ provides a definition of, and/or general information about a value of an information container (element content or attribute value), by reference to an external taxonomy or ontology. Used especially where a contrast with @datcat
is needed.
@@ -572,7 +572,8 @@ Sample values include: 1] all; 2] most; 3] range
- provides a definition of, and/or general information about, information structure of an object referenced or modeled by the containing element, by reference to an external taxonomy or ontology. This attribute has the characteristics of the @datcat
attribute, except that it addresses not its containing element, but an object that is being referenced or modeled by its containing element.
+ provides a definition of, and/or general information about, information structure of an object referenced or modeled by the containing element, by reference to an external taxonomy or ontology. This attribute has the characteristics of the @datcat
attribute, except that it addresses not its containing element, but an object that is being referenced or modeled by its containing element.
@@ -887,6 +888,7 @@ Suggested values include: 1] internal; 2] external; 3] conjecture
(language) indicates the language of the element content using a tag generated according to BCP 47.
@@ -932,7 +934,8 @@ Suggested values include: 1] internal; 2] external; 3] conjecture
- points to a full description of the scribe concerned, typically supplied by a <person>
element elsewhere in the description.
+ points to a full description of the scribe concerned, typically supplied by a <person>
element elsewhere in the description.
@@ -958,7 +961,8 @@ Suggested values include: 1] internal; 2] external; 3] conjecture
- points to a full description of the script or writing style used by this hand, typically supplied by a <scriptNote>
element elsewhere in the description.
+ points to a full description of the script or writing style used by this hand, typically supplied by a <scriptNote>
element elsewhere in the description.
@@ -1166,7 +1170,9 @@ Suggested values include: 1] m (metre); 2] kg (kilogram); 3] s (second); 4] Hz (
- points to a unique identifier stored in the @xml:id
of a <unitDef>
element that defines a unit of measure.
+ points to a unique identifier stored in the @xml:id
of a <unitDef>
element that defines a unit of measure.
\S+
@@ -1332,7 +1338,9 @@ Suggested values include: 1] top; 2] bottom; 3] margin; 4] opposite; 5] overleaf
- specifies the language of the content to be found at the destination referenced by @target
, using a language tag generated according to specifies the language of the content to be found at the destination referenced by @target
, using a language tag generated according to BCP 47.
@@ -1412,7 +1420,11 @@ Suggested values include: 1] top; 2] bottom; 3] margin; 4] opposite; 5] overleaf
- (target function) describes the function of each of the values of the @target
attribute of the enclosed <link>
, <join>
, or <alt>
tags.
+ (target function) describes the function of each of the values of the @target
attribute of the enclosed <link>
, <join>
, or <alt>
tags.
[^\p{C}\p{Z}]+
@@ -1538,7 +1550,8 @@ The element indicated by @spanTo () must follow
- supplies a version number for the style language provided in @scheme
.
+ supplies a version number for the style language provided in @scheme
.
[\d]+[a-z]*[\d]*(\.[\d]+[a-z]*[\d]*){0,3}
@@ -1656,7 +1669,8 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
- specifies the starting point of the range of units indicated by the @unit
attribute.
+ specifies the starting point of the range of units indicated by the @unit
attribute.
[^\p{C}\p{Z}]+
@@ -1666,7 +1680,8 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
- specifies the end-point of the range of units indicated by the @unit
attribute.
+ specifies the end-point of the range of units indicated by the @unit
attribute.
[^\p{C}\p{Z}]+
@@ -3779,7 +3794,8 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
- A @formula
is provided to describe a mathematical calculation such as a conversion between measurement systems.
+ A @formula
is provided to describe a mathematical calculation such as a conversion between measurement systems.
@@ -3790,7 +3806,8 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
- indicates one or more locations by pointing to a <place>
element or other canonical description.
+ indicates one or more locations by pointing to a <place>
element or other canonical description.
@@ -3877,11 +3894,13 @@ Suggested values include: 1] volume (volume); 2] issue; 3] page (page); 4] line;
Suggested values include: 1] page; 2] column; 3] line; 4] book; 5] poem; 6] canto; 7] speaker; 8] stanza; 9] act; 10] scene; 11] section; 12] absent; 13] unnumbered
page
- physical page breaks (synonymous with the <pb>
element).
+ physical page breaks (synonymous with the <pb>
element).
column
column breaks.
line
- line breaks (synonymous with the <lb>
element).
+ line breaks (synonymous with the <lb>
element).
book
any units termed book, liber, etc.
poem
@@ -3913,10 +3932,10 @@ Suggested values include: 1] page; 2] column; 3] line; 4] book; 5] poem; 6] cant
(paragraph) marks paragraphs in prose. [3.1. Paragraphs 7.2.5. Speech Contents]
Abstract model violation: Paragraphs may not occur inside other paragraphs or ab elements.
@@ -3924,10 +3943,10 @@ Suggested values include: 1] page; 2] column; 3] line; 4] book; 5] poem; 6] cant
Abstract model violation: Lines may not contain higher-level structural elements such as div, p, or ab, unless p is a child of figure or note, or is a descendant of floatingText.
@@ -4129,9 +4148,9 @@ Suggested values include: 1] spoken (spoken); 2] thought (thought); 3] written (
(description) contains a short description of the purpose, function, or use of its parent element, or when the parent is a documentation element, describes or defines the object being documented. [22.4.1. Description of Components]
Information about a
@@ -4225,10 +4244,10 @@ Suggested values include: 1] deprecationInfo (deprecation information)
When target= is
present, neither from= nor to= should be.
@@ -4243,10 +4262,10 @@ Suggested values include: 1] deprecationInfo (deprecation information)
When from= is present, the to=
attribute of is required.
@@ -4261,10 +4280,10 @@ Suggested values include: 1] deprecationInfo (deprecation information)
When to= is present, the from=
attribute of is required.
@@ -4747,11 +4766,10 @@ Sample values include: 1] suspension (suspension); 2] contraction (contraction);
(pointer) defines a pointer to another location. [3.7. Simple Links and Cross-References 16.1. Links]
- Only one of the
+ Only one of the
attributes @target and @cRef may be supplied on .
@@ -4769,11 +4787,10 @@ attributes @target and @cRef may be supplied on .
(reference) defines a reference to another location, possibly modified by additional text or comment. [3.7. Simple Links and Cross-References 16.1. Links]
- Only one of the
+ Only one of the
attributes @target' and @cRef' may be supplied on
@@ -4840,9 +4857,9 @@ attributes @target and @cRef may be supplied on .
The content of a "gloss" list should include a sequence of one or more pairs of a label element followed by an item element
@@ -5020,6 +5037,7 @@ attributes @target and @cRef may be supplied on .
The encoding used to encode the binary data. If not specified, this is assumed to be Base64.
@@ -5382,16 +5400,15 @@ Elements]
If the @target attribute on is used, the
relatedItem element must be empty
A relatedItem element should have either a 'target' attribute
or a child element to indicate the related bibliographic item
@@ -5423,10 +5440,10 @@ relatedItem element must be empty
Abstract model violation: Lines may not contain lines or lg elements.
@@ -5475,20 +5492,20 @@ relatedItem element must be empty
An lg element
must contain at least one child l, lg, or gap element.
Abstract model violation: Lines may not contain line groups.
@@ -5595,7 +5612,8 @@ Suggested values include: 1] setting; 2] entrance; 3] exit; 4] business; 5] nove
- (TEI corpus) contains the whole of a TEI encoded corpus, comprising a single corpus header and one or more <TEI>
elements, each containing a single text header and a text. [4. Default Text Structure 15.1. Varieties of Composite Text]
+ (TEI corpus) contains the whole of a TEI encoded corpus, comprising a single corpus header and one or more <TEI>
elements, each containing a single text header and a text. [4. Default Text Structure 15.1. Varieties of Composite Text]
@@ -5678,7 +5696,8 @@ Sample values include: 1] index; 2] toc; 3] figlist; 4] tablist
- (use) supplies an XPath selection pattern using the syntax defined in . The XPath pattern is relative to the context given in @match
, which will either be a sibling attribute in the case of `<citeStructure>` or on the parent `<citeStructure>` in the case of `<citeData>`.
+ (use) supplies an XPath selection pattern using the syntax defined in . The XPath pattern is relative to the context given in @match
, which will either be a sibling attribute in the case of `<citeStructure>` or on the parent `<citeStructure>` in the case of `<citeData>`.
@@ -5694,7 +5713,8 @@ Sample values include: 1] index; 2] toc; 3] figlist; 4] tablist
- specifies a replacement pattern, that is, the skeleton of a relative or absolute URI containing references to groups in the @matchPattern
which, once subpattern substitution has been performed, complete the URI.
+ specifies a replacement pattern, that is, the skeleton of a relative or absolute URI containing references to groups in the @matchPattern
which, once subpattern substitution has been performed, complete the URI.
@@ -5879,6 +5899,7 @@ Suggested values include: 1] ISBN; 2] ISSN; 3] DOI; 4] URI; 5] VIAF; 6] ESTC; 7]
ISBN
International Standard Book Number: a 13- or (if assigned prior to 2007) 10-digit identifying number assigned by the publishing industry to a published book or similar item, registered with the International ISBN Agency.
ISSN
@@ -5887,6 +5908,7 @@ Suggested values include: 1] ISBN; 2] ISSN; 3] DOI; 4] URI; 5] VIAF; 6] ESTC; 7]
Digital Object Identifier: a unique string of letters and numbers assigned to an electronic document.
URI
Uniform Resource Identifier: a string of characters to uniquely identify a resource, following the syntax of RFC 3986.
VIAF
A data number in the Virtual Internet Authority File assigned to link different names in catalogs around the world for the same entity.
@@ -6177,10 +6199,10 @@ Suggested values include: 1] ISBN; 2] ISSN; 3] DOI; 4] URI; 5] VIAF; 6] ESTC; 7]
-
On , either the @marks attribute should be used, or a paragraph of description provided
@@ -6314,7 +6336,8 @@ On , either the @marks attribute should be used, or a paragraph of descri
- indicates whether the element types listed exhaustively include all those found within <text>
, or represent only a subset.
+ indicates whether the element types listed exhaustively include all those found within <text>
, or represent only a subset.
@@ -6328,7 +6351,8 @@ On , either the @marks attribute should be used, or a paragraph of descri
- (generic identifier) specifies the name (generic identifier) of the element indicated by the tag, within the namespace indicated by the parent <namespace>
element.
+ (generic identifier) specifies the name (generic identifier) of the element indicated by the tag, within the namespace indicated by the parent <namespace>
element.
@@ -6339,7 +6363,8 @@ On , either the @marks attribute should be used, or a paragraph of descri
- (with unique identifier) specifies the number of occurrences of this element within the text which bear a distinct value for the global @xml:id
attribute.
+ (with unique identifier) specifies the number of occurrences of this element within the text which bear a distinct value for the global @xml:id
attribute.
@@ -6379,7 +6404,8 @@ Sample values include: 1] first-line; 2] first-letter; 3] before; 4] after
- contains a selector or series of selectors specifying the elements to which the contained style description applies, expressed in the language specified in the @scheme
attribute.
+ contains a selector or series of selectors specifying the elements to which the contained style description applies, expressed in the language specified in the @scheme
attribute.
@@ -6445,22 +6471,27 @@ Sample values include: 1] first-line; 2] first-letter; 3] before; 4] after
- (match) supplies an XPath selection pattern using the syntax defined in which identifies a set of nodes which are citable structural components. The expression may be absolute (beginning with `/`) or relative. @match
on a <citeStructure>
without a <citeStructure>
parent must be an absolute XPath. If it is relative, its context is set by the @match
of the parent <citeStructure>
.
+ (match) supplies an XPath selection pattern using the syntax defined in which identifies a set of nodes which are citable structural components. The expression may be absolute (beginning with `/`) or relative. @match
on a <citeStructure>
without a <citeStructure>
parent must be an absolute XPath. If it is relative, its context is set by the @match
of the parent <citeStructure>
.
-
An XPath in @match on the outer must start with '/'.
-
An XPath in @match must not start with '/' except on the outer .
@@ -6468,7 +6499,8 @@ Sample values include: 1] first-line; 2] first-letter; 3] before; 4] after
- (unit) describes the structural unit indicated by the <citeStructure>
.
+ (unit) describes the structural unit indicated by the <citeStructure>
.
Sample values include: 1] book; 2] chapter; 3] entry; 4] poem; 5] letter; 6] line; 7] section; 8] verse; 9] volume
[^\p{C}\p{Z}]+
@@ -6636,7 +6668,8 @@ Sample values include: 1] book; 2] chapter; 3] entry; 4] poem; 5] letter; 6] lin
- (category description) describes some category within a taxonomy or text typology, either in the form of a brief prose description or in terms of the situational parameters used by the TEI formal <textDesc>
. [2.3.7. The Classification Declaration]
+ (category description) describes some category within a taxonomy or text typology, either in the form of a brief prose description or in terms of the situational parameters used by the TEI formal <textDesc>
. [2.3.7. The Classification Declaration]
@@ -6651,7 +6684,8 @@ Sample values include: 1] book; 2] chapter; 3] entry; 4] poem; 5] letter; 6] lin
- (geographic coordinates declaration) documents the notation and the datum used for geographic coordinates expressed as content of the <geo>
element elsewhere within the document. [2.3.8. The Geographic Coordinates Declaration]
+ (geographic coordinates declaration) documents the notation and the datum used for geographic coordinates expressed as content of the <geo>
element elsewhere within the document. [2.3.8. The Geographic Coordinates Declaration]
@@ -6724,13 +6758,15 @@ Suggested values include: 1] WGS84 (World Geodetic System); 2] MGRS (Military Gr
- indicates a source unit of measure that is to be converted into another unit indicated in @toUnit
.
+ indicates a source unit of measure that is to be converted into another unit indicated in @toUnit
.
\S+
- the target unit of measurement for a conversion from a source unit referenced in @fromUnit
.
+ the target unit of measurement for a conversion from a source unit referenced in @fromUnit
.
\S+
@@ -6842,7 +6878,9 @@ Suggested values include: 1] WGS84 (World Geodetic System); 2] MGRS (Military Gr
(identifier) Supplies a language code constructed as defined in BCP 47 which is used to identify the language documented by this element, and which is referenced by the global @xml:lang
attribute.
+ xmlns:rng="http://relaxng.org/ns/structure/1.0"
+ href="https://tools.ietf.org/html/bcp47">BCP 47 which is used to identify the language documented by this element, and which is referenced by the global @xml:lang
attribute.
@@ -6887,7 +6925,8 @@ Suggested values include: 1] WGS84 (World Geodetic System); 2] MGRS (Military Gr
- identifies the controlled vocabulary within which the set of keywords concerned is defined, for example by a <taxonomy>
element, or by some other resource.
+ identifies the controlled vocabulary within which the set of keywords concerned is defined, for example by a <taxonomy>
element, or by some other resource.
\S+
@@ -6902,7 +6941,8 @@ Suggested values include: 1] WGS84 (World Geodetic System); 2] MGRS (Military Gr
- identifies the classification system in use, as defined by, e.g. a <taxonomy>
element, or some other resource.
+ identifies the classification system in use, as defined by, e.g. a <taxonomy>
element, or some other resource.
\S+
@@ -6918,7 +6958,8 @@ Suggested values include: 1] WGS84 (World Geodetic System); 2] MGRS (Military Gr
- identifies the classification scheme within which the set of categories concerned is defined, for example by a <taxonomy>
element, or by some other resource.
+ identifies the classification scheme within which the set of categories concerned is defined, for example by a <taxonomy>
element, or by some other resource.
\S+
@@ -7087,7 +7128,8 @@ Suggested values include: 1] sent; 2] received; 3] transmitted; 4] redirected; 5
- indicates whether the ordering of its child <change>
elements is to be considered significant or not
+ indicates whether the ordering of its child <change>
elements is to be considered significant or not
@@ -7152,7 +7194,9 @@ Suggested values include: 1] sent; 2] received; 3] transmitted; 4] redirected; 5
(morphosyntactic description) supplies morphosyntactic information for a token, usually according to some official reference vocabulary (e.g. for German: STTS-large tagset; for a feature description system designed as (pragmatically) universal, see Universal Features).
@@ -7183,7 +7227,8 @@ Suggested values include: 1] sent; 2] received; 3] transmitted; 4] redirected; 5
- (analysis) indicates one or more elements containing interpretations of the element on which the @ana
attribute appears.
+ (analysis) indicates one or more elements containing interpretations of the element on which the @ana
attribute appears.
@@ -7199,11 +7244,10 @@ Suggested values include: 1] sent; 2] received; 3] transmitted; 4] redirected; 5
(s-unit) contains a sentence-like division of a text. [17.1. Linguistic Segment Categories 8.4.1. Segmentation]
- You may not nest one s element within
+ You may not nest one s element within
another: use seg instead
@@ -7277,7 +7321,8 @@ Suggested values include: 1] sent; 2] received; 3] transmitted; 4] redirected; 5
- (analysis) indicates one or more elements containing interpretations of the element on which the @ana
attribute appears.
+ (analysis) indicates one or more elements containing interpretations of the element on which the @ana
attribute appears.
@@ -7379,10 +7424,10 @@ Suggested values include: 1] sent; 2] received; 3] transmitted; 4] redirected; 5
associates an interpretative annotation directly with a span of text. [17.3. Spans and Interpretations]
-
Only one of the attributes @target and @from may be supplied on
@@ -7390,10 +7435,10 @@ Only one of the attributes @target and @from may be supplied on
-
Only one of the attributes @target and @to may be supplied on
@@ -7401,20 +7446,20 @@ Only one of the attributes @target and @to may be supplied on
-
If @to is supplied on , @from must be supplied as well
-
The attributes @to and @from on may each contain only a single value
@@ -7425,7 +7470,8 @@ The attributes @to and @from on may each contain only a single value
- gives the identifier of the node which is the starting point of the span of text being annotated; if not accompanied by a @to
attribute, gives the identifier of the node of the entire span of text being annotated.
+ gives the identifier of the node which is the starting point of the span of text being annotated; if not accompanied by a @to
attribute, gives the identifier of the node of the entire span of text being annotated.
\S+
@@ -7586,10 +7632,10 @@ The attributes @to and @from on may each contain only a single value(link) defines an association or hypertextual link among elements or passages, of some type not more precisely specifiable by other elements. [16.1. Links]
You must supply at least two values for @target or on
@@ -7617,10 +7663,10 @@ The attributes @to and @from on may each contain only a single value
Too many links!
@@ -7634,12 +7680,117 @@ The attributes @to and @from on may each contain only a single value
(anonymous block) contains any component-level unit of text, acting as a container for phrase or inter level elements analogous to, but without the same constraints as, a paragraph. [16.3. Blocks, Segments, and Anchors]
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -7698,7 +7849,9 @@ The attributes @to and @from on may each contain only a single value
- specifies the unit of time in which the @interval
value is expressed, if this is not inherited from the parent <timeline>
.
+ specifies the unit of time in which the @interval
value is expressed, if this is not inherited from the parent <timeline>
.
Suggested values include: 1] d (days); 2] h (hours); 3] min (minutes); 4] s (seconds); 5] ms (milliseconds)
d
@@ -7735,7 +7888,8 @@ Suggested values include: 1] d (days); 2] h (hours); 3] min (minutes); 4] s (sec
- identifies the reference point for determining the time of the current <when>
element, which is obtained by adding the interval to the time of the reference point.
+ identifies the reference point for determining the time of the current <when>
element, which is obtained by adding the interval to the time of the reference point.
\S+
@@ -7761,7 +7915,8 @@ Suggested values include: 1] d (days); 2] h (hours); 3] min (minutes); 4] s (sec
- specifies the unit of time corresponding to the @interval
value of the timeline or of its constituent points in time.
+ specifies the unit of time corresponding to the @interval
value of the timeline or of its constituent points in time.
Suggested values include: 1] d (days); 2] h (hours); 3] min (minutes); 4] s (seconds); 5] ms (milliseconds)
d
@@ -7838,7 +7993,9 @@ Suggested values include: 1] d (days); 2] h (hours); 3] min (minutes); 4] s (sec
- If @mode
is excl, each weight states the probability that the corresponding alternative occurs. If @mode
is incl each weight states the probability that the corresponding alternative occurs given that at least one of the other alternatives occurs.
+ If @mode
is excl, each weight states the probability that the corresponding alternative occurs. If @mode
is incl each weight states the probability that the corresponding alternative occurs given that at least one of the other alternatives occurs.
@@ -7853,7 +8010,8 @@ Suggested values include: 1] d (days); 2] h (hours); 3] min (minutes); 4] s (sec
- (alternation group) groups a collection of <alt>
elements and possibly pointers. [16.8. Alternation]
+ (alternation group) groups a collection of <alt>
elements and possibly pointers. [16.8. Alternation]
@@ -7890,10 +8048,10 @@ Suggested values include: 1] d (days); 2] h (hours); 3] min (minutes); 4] s (sec
This
@@ -7910,7 +8068,11 @@ Suggested values include: 1] d (days); 2] h (hours); 3] min (minutes); 4] s (sec
- contains a list of annotations, typically encoded as <annotation>
, <annotationBlock>
, or <note>
, possibly organized with nested <listAnnotation>
elements. [16.10. The standOff Container]
+ contains a list of annotations, typically encoded as <annotation>
, <annotationBlock>
, or <note>
, possibly organized with nested <listAnnotation>
elements. [16.10. The standOff Container]
@@ -7934,7 +8096,9 @@ Suggested values include: 1] d (days); 2] h (hours); 3] min (minutes); 4] s (sec
- represents an annotation following the Web
+ represents an annotation following the Web
Annotation Data Model. [16.10. The standOff Container]
@@ -8026,7 +8190,10 @@ Suggested values include: 1] d (days); 2] h (hours); 3] min (minutes); 4] s (sec
- (TEI document) contains a single TEI-conformant document, combining a single TEI header with one or more members of the model.resource class. Multiple <TEI>
elements may be combined within a <TEI>
(or <teiCorpus>
) element. [4. Default Text Structure 15.1. Varieties of Composite Text]
+ (TEI document) contains a single TEI-conformant document, combining a single TEI header with one or more members of the model.resource class. Multiple <TEI>
elements may be combined within a <TEI>
(or <teiCorpus>
) element. [4. Default Text Structure 15.1. Varieties of Composite Text]
@@ -8349,10 +8516,10 @@ Suggested values include: 1] d (days); 2] h (hours); 3] min (minutes); 4] s (sec
Abstract model violation: Lines may not contain higher-level structural elements such as div, unless div is a descendant of floatingText.
@@ -8360,10 +8527,10 @@ Suggested values include: 1] d (days); 2] h (hours); 3] min (minutes); 4] s (sec
Abstract model violation: p and ab may not contain higher-level structural elements such as div, unless div is a descendant of floatingText.
diff --git a/Test2/inputFiles/testPure1.odd b/Test2/inputFiles/testPure1.odd
index e80d5ca43..93e9788c1 100644
--- a/Test2/inputFiles/testPure1.odd
+++ b/Test2/inputFiles/testPure1.odd
@@ -1,33 +1,35 @@
-
+
+
-
-
- Test TEI Customization using Pure ODD
- Martin Holmes
- Syd Bauman
-
-
- Free for anyone for anything
-
-
- Authored from scratch
-
-
+
+
+ Test TEI Customization using Pure ODD
+ Martin Holmes
+ Syd Bauman
+
+
+ Free for anyone for anything
+
+
+ Authored from scratch
+
+
-
- Here is the TEI badge:
-
- The TEI Badge
-
. It is here to test desc in graphic in an ODD per
- .
-
-
- This file is intended as input for a conversion to
+
+ Here is the TEI badge:
+
+ The TEI Badge
+
. It is here to test desc in graphic in an ODD per
+ .
+
+
+ This file is intended as input for a conversion to
RNG and Schematron (and possibly other outputs) as part
of the modular Stylesheets test process. No source is
specified here, because the source p5subset.xml is controlled
@@ -39,212 +41,220 @@
compliant schemas (for the most severe definition of
TEI-compliant).
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+ long playing
+ 12-inch vinyl
+
+
+
+
+
+ compact disc
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+ A short bibliographic citation with nothing but author, title, and optional date
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+ The email address of Amour de Cosmos.
+
+
+ The email address of The Venerable Bede.
+
+
+
+
+ Our email element is only allowed to contain
+ one of two email addresses, so we try to constrain its
+ content model using a valList.
+
+
-
-
-
-
-
-
+
+
+
+ Too many links!
+
+
+
-
-
-
-
-
-
-
-
- long playing
- 12-inch vinyl
-
-
-
-
-
- compact disc
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- A short bibliographic citation with nothing but author, title, and optional date
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- The email address of Amour de Cosmos.
-
-
- The email address of The Venerable Bede.
-
-
-
-
- Our email element is only allowed to contain
- one of two email addresses, so we try to constrain its
- content model using a valList.
-
-
-
-
-
-
-
- Too many links!
-
-
-
+
+ * An abbr and expan (in any order, explicitly set by @preserveOrder="false")
+ * A corr and sic (in that specific order, explicitly set by @preserveOrder="true")
+ * An orig and reg (in that specific order, implicitly set by omitting @preserveOrder)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Our choice element is allowed to contain one of the following combinations:
-
- - abbr and expan
- - expan and abbr
- - corr and sic
- - orig and reg
-
-
-
-
+ Inspired by the example in TD for sequence and alternate:
+ https://www.tei-c.org/Vault/P5/4.2.2/doc/tei-p5-doc/en/html/TD.html#index-egXML-d53e153603
+ -->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Our choice element is allowed to contain one of the following combinations:
+
+ - abbr and expan
+ - expan and abbr
+ - corr and sic
+ - orig and reg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
diff --git a/Test2/inputFiles/validInstances/testPure1ValidInstance.xml b/Test2/inputFiles/validInstances/testPure1ValidInstance.xml
index 88bb2c197..578e13203 100644
--- a/Test2/inputFiles/validInstances/testPure1ValidInstance.xml
+++ b/Test2/inputFiles/validInstances/testPure1ValidInstance.xml
@@ -111,6 +111,144 @@
that especialspecial
orderoder.
+
+
+ Testing
minOccurs and
maxOccurs on
anyElement
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+