Skip to content

Commit

Permalink
Merge branch 'dev' into release-7.54.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Oct 25, 2022
2 parents cb560a8 + b9f630f commit 4c7e50c
Show file tree
Hide file tree
Showing 18 changed files with 827 additions and 224 deletions.
Binary file modified Test/expected-results/test.epub
Binary file not shown.
1 change: 0 additions & 1 deletion Test/expected-results/test.isosch
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<!-- ********************* -->
<!-- namespaces, implicit: -->
<!-- ********************* -->
<ns prefix="dcr" uri="http://www.isocat.org/ns/dcr"/>
<!-- ************ -->
<!-- constraints: -->
<!-- ************ -->
Expand Down
5 changes: 1 addition & 4 deletions Test/expected-results/test.odd.html
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,7 @@ <h1>
<span class="hi">
<a class="link_ref" href="https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-att.datcat.html">att.datcat</a>
</span>:
<span xml:lang="en" lang="en">provides attributes that are used to align XML elements or attributes with the appropriate Data Categories (DCs) defined by the ISO 12620:2009 standard and stored in the Web repository called ISOCat at
<a class="link_ptr" href="http://www.isocat.org/">
<span>http://www.isocat.org/</span>
</a>.</span>[
<span xml:lang="en" lang="en">provides attributes that are used to align XML elements or attributes with the appropriate Data Categories (DCs) defined by an external taxonomy, in this way establishing the identity of information containers and values, and providing means of interpreting them.</span>[
<a class="link_ref" href="https://www.tei-c.org/release/doc/tei-p5-doc/en/html/DI.html#DIMVLV">9.5.2. Lexical View</a>
<a class="link_ref" href="https://www.tei-c.org/release/doc/tei-p5-doc/en/html/FS.html#FSSY">18.3. Other Atomic Feature Values</a>]</td>
</tr>
Expand Down
27 changes: 22 additions & 5 deletions Test/expected-results/test.rng
Original file line number Diff line number Diff line change
Expand Up @@ -561,11 +561,12 @@ Sample values include: 1] rubbing; 2] mildew; 3] smoke</a:documentation>
<define name="att.datcat.attributes">
<ref name="att.datcat.attribute.datcat"/>
<ref name="att.datcat.attribute.valueDatcat"/>
<ref name="att.datcat.attribute.targetDatcat"/>
</define>
<define name="att.datcat.attribute.datcat">
<optional>
<attribute name="datcat" ns="http://www.isocat.org/ns/dcr">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">contains a PID (persistent identifier) that aligns the given element with the appropriate Data Category (or categories) in ISOcat.</a:documentation>
<attribute name="datcat">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">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 <code xmlns="http://www.w3.org/1999/xhtml">@valueDatcat</code> is present in the immediate context, this attribute takes on role (a), while <code xmlns="http://www.w3.org/1999/xhtml">@valueDatcat</code> performs role (b).</a:documentation>
<list>
<oneOrMore>
<data type="anyURI">
Expand All @@ -578,8 +579,22 @@ Sample values include: 1] rubbing; 2] mildew; 3] smoke</a:documentation>
</define>
<define name="att.datcat.attribute.valueDatcat">
<optional>
<attribute name="valueDatcat" ns="http://www.isocat.org/ns/dcr">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">contains a PID (persistent identifier) that aligns the content of the given element or the value of the given attribute with the appropriate simple Data Category (or categories) in ISOcat.</a:documentation>
<attribute name="valueDatcat">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">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 <code xmlns="http://www.w3.org/1999/xhtml">@datcat</code> is needed.</a:documentation>
<list>
<oneOrMore>
<data type="anyURI">
<param name="pattern">\S+</param>
</data>
</oneOrMore>
</list>
</attribute>
</optional>
</define>
<define name="att.datcat.attribute.targetDatcat">
<optional>
<attribute name="targetDatcat">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">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 <code xmlns="http://www.w3.org/1999/xhtml">@datcat</code> attribute, except that it addresses not its containing element, but an object that is being referenced or modeled by its containing element.</a:documentation>
<list>
<oneOrMore>
<data type="anyURI">
Expand Down Expand Up @@ -6568,6 +6583,7 @@ On <name/>, either the @marks attribute should be used, or a paragraph of descri
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(element usage) documents the usage of a specific element within a specified document. [2.3.4. The Tagging Declaration]</a:documentation>
<ref name="macro.limitedContent"/>
<ref name="att.global.attributes"/>
<ref name="att.datcat.attributes"/>
<attribute name="gi">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(generic identifier) specifies the name (generic identifier) of the element indicated by the tag, within the namespace indicated by the parent <code xmlns="http://www.w3.org/1999/xhtml">&lt;namespace&gt;</code> element.</a:documentation>
<data type="Name"/>
Expand Down Expand Up @@ -10993,7 +11009,8 @@ Suggested values include: 1] simple; 2] lemma; 3] variant; 4] compound; 5] deriv
<ref name="att.lexicographic.attributes"/>
<optional>
<attribute name="type">
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">classifies the grammatical information given according to some convenient typology—in the case of terminological information, preferably the dictionary of data element types specified in <a xmlns="http://www.w3.org/1999/xhtml" href="http://www.isocat.org/">ISO 12620</a>.
<a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">classifies grammatical information provided by <code xmlns="http://www.w3.org/1999/xhtml">&lt;gram&gt;</code> according to some convenient and shared typology, ideally one defined in an external reference taxonomy, such as the <a xmlns="http://www.w3.org/1999/xhtml" href="https://www.clarin.eu/content/clarin-concept-registry">CLARIN Concept
Registry</a>.
Sample values include: 1] pos (part of speech); 2] gen (gender); 3] num (number); 4] animate; 5] proper</a:documentation>
<data type="token">
<param name="pattern">[^\p{C}\p{Z}]+</param>
Expand Down
Binary file modified Test/expected-results/test.xml.odt
Binary file not shown.
5 changes: 1 addition & 4 deletions Test/expected-results/test15.odd.html
Original file line number Diff line number Diff line change
Expand Up @@ -1920,10 +1920,7 @@ <h1>
<span class="hi" itemprop="hi">
<a class="link_ref" itemprop="ref" href="https://www.tei-c.org/release/doc/tei-p5-doc/es/html/ref-att.datcat.html">att.datcat</a>
</span>:
<span xml:lang="en" lang="en" itemprop="seg">provides attributes that are used to align XML elements or attributes with the appropriate Data Categories (DCs) defined by the ISO 12620:2009 standard and stored in the Web repository called ISOCat at
<a class="link_ptr" itemprop="ptr" href="http://www.isocat.org/">
<span>http://www.isocat.org/</span>
</a>.</span>[
<span xml:lang="en" lang="en" itemprop="seg">provides attributes that are used to align XML elements or attributes with the appropriate Data Categories (DCs) defined by an external taxonomy, in this way establishing the identity of information containers and values, and providing means of interpreting them.</span>[
<a class="link_ref" itemprop="ref" href="https://www.tei-c.org/release/doc/tei-p5-doc/en/html/DI.html#DIMVLV">9.5.2. Lexical View</a>
<a class="link_ref" itemprop="ref" href="https://www.tei-c.org/release/doc/tei-p5-doc/en/html/FS.html#FSSY">18.3. Other Atomic Feature Values</a>]</td>
</tr>
Expand Down
43 changes: 35 additions & 8 deletions Test/expected-results/test15.odd.rnc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
namespace ns1 = "http://www.w3.org/1999/xhtml"
namespace ns2 = "http://www.isocat.org/ns/dcr"
namespace rng = "http://relaxng.org/ns/structure/1.0"
namespace sch = "http://purl.oclc.org/dsdl/schematron"
default namespace tei = "http://www.tei-c.org/ns/1.0"
Expand Down Expand Up @@ -400,19 +399,46 @@ att.datable.attribute.period =
}
}?
att.datcat.attributes =
att.datcat.attribute.datcat, att.datcat.attribute.valueDatcat
att.datcat.attribute.datcat,
att.datcat.attribute.valueDatcat,
att.datcat.attribute.targetDatcat
att.datcat.attribute.datcat =

## contains a PID (persistent identifier) that aligns the given element with the appropriate Data Category (or categories) in ISOcat.
attribute ns2:datcat {
[
a:documentation [
"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 "
ns1:code [ "@valueDatcat" ]
" is present in the immediate context, this attribute takes on role (a), while "
ns1:code [ "@valueDatcat" ]
" performs role (b)."
]
]
attribute datcat {
list {
xsd:anyURI { pattern = "\S+" }+
}
}?
att.datcat.attribute.valueDatcat =

## contains a PID (persistent identifier) that aligns the content of the given element or the value of the given attribute with the appropriate simple Data Category (or categories) in ISOcat.
attribute ns2:valueDatcat {
[
a:documentation [
"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 "
ns1:code [ "@datcat" ]
" is needed."
]
]
attribute valueDatcat {
list {
xsd:anyURI { pattern = "\S+" }+
}
}?
att.datcat.attribute.targetDatcat =
[
a:documentation [
"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 "
ns1:code [ "@datcat" ]
" attribute, except that it addresses not its containing element, but an object that is being referenced or modeled by its containing element."
]
]
attribute targetDatcat {
list {
xsd:anyURI { pattern = "\S+" }+
}
Expand Down Expand Up @@ -4003,6 +4029,7 @@ tagUsage =
element tagUsage {
macro.limitedContent,
att.global.attributes,
att.datcat.attributes,
[
a:documentation [
"(generic identifier) specifies the name (generic identifier) of the element indicated by the tag, within the namespace indicated by the parent "
Expand Down
43 changes: 35 additions & 8 deletions Test/expected-results/test21.odd.rnc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
namespace ns1 = "http://www.w3.org/1999/xhtml"
namespace ns2 = "http://www.isocat.org/ns/dcr"
namespace rng = "http://relaxng.org/ns/structure/1.0"
namespace sch = "http://purl.oclc.org/dsdl/schematron"
default namespace tei = "http://www.tei-c.org/ns/1.0"
Expand Down Expand Up @@ -433,19 +432,46 @@ att.datable.attribute.period =
}
}?
att.datcat.attributes =
att.datcat.attribute.datcat, att.datcat.attribute.valueDatcat
att.datcat.attribute.datcat,
att.datcat.attribute.valueDatcat,
att.datcat.attribute.targetDatcat
att.datcat.attribute.datcat =

## contains a PID (persistent identifier) that aligns the given element with the appropriate Data Category (or categories) in ISOcat.
attribute ns2:datcat {
[
a:documentation [
"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 "
ns1:code [ "@valueDatcat" ]
" is present in the immediate context, this attribute takes on role (a), while "
ns1:code [ "@valueDatcat" ]
" performs role (b)."
]
]
attribute datcat {
list {
xsd:anyURI { pattern = "\S+" }+
}
}?
att.datcat.attribute.valueDatcat =

## contains a PID (persistent identifier) that aligns the content of the given element or the value of the given attribute with the appropriate simple Data Category (or categories) in ISOcat.
attribute ns2:valueDatcat {
[
a:documentation [
"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 "
ns1:code [ "@datcat" ]
" is needed."
]
]
attribute valueDatcat {
list {
xsd:anyURI { pattern = "\S+" }+
}
}?
att.datcat.attribute.targetDatcat =
[
a:documentation [
"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 "
ns1:code [ "@datcat" ]
" attribute, except that it addresses not its containing element, but an object that is being referenced or modeled by its containing element."
]
]
attribute targetDatcat {
list {
xsd:anyURI { pattern = "\S+" }+
}
Expand Down Expand Up @@ -5852,6 +5878,7 @@ tagUsage =
element tagUsage {
macro.limitedContent,
att.global.attributes,
att.datcat.attributes,

## (nom de l'élément) nom (identifiant générique) de l’élément indiqué par la balise.
attribute gi { xsd:Name },
Expand Down
7 changes: 6 additions & 1 deletion Test/expected-results/test30.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,13 @@ datcat CDATA #IMPLIED'>

<!ENTITY % Tatt.datcat.attribute.valueDatcat '
valueDatcat CDATA #IMPLIED'>

<!ENTITY % Tatt.datcat.attribute.targetDatcat '
targetDatcat CDATA #IMPLIED'>
<!ENTITY % Tatt.datcat.attributes '
%Tatt.datcat.attribute.datcat;
%Tatt.datcat.attribute.valueDatcat;'>
%Tatt.datcat.attribute.valueDatcat;
%Tatt.datcat.attribute.targetDatcat;'>
<!ENTITY % Tatt.declarable.attribute.default '
default (true|false) "false" '>
<!ENTITY % Tatt.declarable.attributes '
Expand Down Expand Up @@ -3273,6 +3277,7 @@ cols %teidata.count; #IMPLIED >
<!ATTLIST tagUsage xmlns CDATA "http://www.tei-c.org/ns/1.0">
<!ATTLIST tagUsage
%Tatt.global.attributes;
%Tatt.datcat.attributes;
gi %teidata.name; #REQUIRED
occurs %teidata.count; #IMPLIED
withId %teidata.count; #IMPLIED >
Expand Down
49 changes: 38 additions & 11 deletions Test/expected-results/test30.rnc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
namespace ns1 = "http://www.w3.org/1999/xhtml"
namespace ns2 = "http://www.isocat.org/ns/dcr"
namespace ns3 = "http://www.oucs.ox.ac.uk/ns"
namespace ns2 = "http://www.oucs.ox.ac.uk/ns"
namespace rng = "http://relaxng.org/ns/structure/1.0"
namespace sch = "http://purl.oclc.org/dsdl/schematron"
default namespace tei = "http://www.tei-c.org/ns/1.0"
Expand Down Expand Up @@ -31,7 +30,7 @@ Tmacro.specialPara =
| Tmodel.global)*
Tmacro.xtext = (text | Tmodel.gLike)*
anyElement-xenoData =
element * - (tei:* | ns3:* | teix:egXML) {
element * - (tei:* | ns2:* | teix:egXML) {
attribute * { text }*,
(text | anyElement-xenoData)*
}
Expand Down Expand Up @@ -451,19 +450,46 @@ Tatt.datable.attribute.period =
}
}?
Tatt.datcat.attributes =
Tatt.datcat.attribute.datcat, Tatt.datcat.attribute.valueDatcat
Tatt.datcat.attribute.datcat,
Tatt.datcat.attribute.valueDatcat,
Tatt.datcat.attribute.targetDatcat
Tatt.datcat.attribute.datcat =

## contains a PID (persistent identifier) that aligns the given element with the appropriate Data Category (or categories) in ISOcat.
attribute ns2:datcat {
[
a:documentation [
"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 "
ns1:code [ "@valueDatcat" ]
" is present in the immediate context, this attribute takes on role (a), while "
ns1:code [ "@valueDatcat" ]
" performs role (b)."
]
]
attribute datcat {
list {
xsd:anyURI { pattern = "\S+" }+
}
}?
Tatt.datcat.attribute.valueDatcat =

## contains a PID (persistent identifier) that aligns the content of the given element or the value of the given attribute with the appropriate simple Data Category (or categories) in ISOcat.
attribute ns2:valueDatcat {
[
a:documentation [
"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 "
ns1:code [ "@datcat" ]
" is needed."
]
]
attribute valueDatcat {
list {
xsd:anyURI { pattern = "\S+" }+
}
}?
Tatt.datcat.attribute.targetDatcat =
[
a:documentation [
"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 "
ns1:code [ "@datcat" ]
" attribute, except that it addresses not its containing element, but an object that is being referenced or modeled by its containing element."
]
]
attribute targetDatcat {
list {
xsd:anyURI { pattern = "\S+" }+
}
Expand Down Expand Up @@ -4466,6 +4492,7 @@ TtagUsage =
element tagUsage {
Tmacro.limitedContent,
Tatt.global.attributes,
Tatt.datcat.attributes,
[
a:documentation [
"(generic identifier) specifies the name (generic identifier) of the element indicated by the tag, within the namespace indicated by the parent "
Expand Down Expand Up @@ -8291,7 +8318,7 @@ Tplatypus =
TMenu =

##
element ns3:Menu {
element ns2:Menu {
text,
Tatt.global.attribute.xmlid,
Tatt.global.rendition.attribute.rend,
Expand Down
Loading

0 comments on commit 4c7e50c

Please sign in to comment.