Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new att.source and include att.written and att.placement in it #2643

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions P5/Source/Specs/att.global.rendition.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
<classSpec xmlns="http://www.tei-c.org/ns/1.0" predeclare="true" module="tei" type="atts" xml:id="class-attr-global.rendition" ident="att.global.rendition">
<desc versionDate="2014-12-02" xml:lang="en">provides rendering attributes common to all elements in the TEI encoding scheme.</desc>
<desc versionDate="2019-07-21" xml:lang="ja">TEIの符号化スキーマにおけるすべての要素に共通するレンダリング属性を提供する。</desc>
<classes/>


<attList>



<attDef ident="rend" usage="opt">
<attList>
<attDef ident="rend" usage="opt">
<gloss versionDate="2007-07-02" xml:lang="en">rendition</gloss>
<gloss versionDate="2007-12-20" xml:lang="ko">번역</gloss>
<gloss versionDate="2008-04-06" xml:lang="es">interpretación</gloss>
Expand Down Expand Up @@ -169,8 +163,6 @@ the TEI header.</p>
indicado por el atributo <att>scheme</att> (esquema).</p>
</remarks>
</attDef>


</attList>
<listRef>
<ptr target="#STGAre"/>
Expand Down
7 changes: 7 additions & 0 deletions P5/Source/Specs/att.placement.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<desc versionDate="2007-01-21" xml:lang="it">identifica degli attributi
che descrivono la collocazione di un elemento testuale all'interno
della pagina o dell'oggetto di origine</desc>
<classes>
<memberOf key="att.source"/>
</classes>
<attList>
<attDef ident="place" usage="rec">
<desc versionDate="2012-10-07" xml:lang="en">specifies where this item is placed.</desc>
Expand Down Expand Up @@ -124,6 +127,10 @@
<note place="bottom">Ibid, p.7</note>
</egXML>
</exemplum>
<remarks versionDate="2024-12-20" xml:lang="en">
<p>The <att>place</att> attribute should be used only on elements containing the source material (predominantly within <gi>teiHeader</gi>
and <gi>text</gi> elements only where it makes sense).</p>
</remarks>
</attDef>
</attList>
<listRef>
Expand Down
17 changes: 17 additions & 0 deletions P5/Source/Specs/att.source.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- © TEI Consortium. Dual-licensed under CC-by and BSD2 licenses; see the file COPYING.txt for details. -->
<?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"?>
<classSpec xmlns="http://www.tei-c.org/ns/1.0" module="tei" type="atts" ident="att.source">
<desc versionDate="2024-12-30" xml:lang="en">provides attributes for describing the source
rendition.</desc>
<desc versionDate="2024-12-30" xml:lang="de">stellt Attribute für die Darstellung in der Quelle
zur Verfügung.</desc>
<remarks versionDate="2024-12-30" xml:lang="en">
<p>This class of elements refers to the content o the source but not its metadata.</p>
</remarks>
<remarks versionDate="2024-12-30" xml:lang="de">
<p>Diese Elementklasse bezieht sich auf den Inhalt der Quelle, nicht auf deren
Metadaten.</p>
</remarks>
</classSpec>
4 changes: 3 additions & 1 deletion P5/Source/Specs/att.written.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
the content of an element was written in the source being transcribed.</desc>
<desc versionDate="2024-08-16" xml:lang="de">stellt Attribute bereit, um anzuzeigen, von welcher
Hand der Inhalt eines Elements in der transkribierten Quelle stammt.</desc>
<classes/>
<classes>
<memberOf key="att.source"/>
</classes>
<attList>
<attDef ident="hand" usage="opt">
<desc versionDate="2018-06-15" xml:lang="en">points to a <gi>handNote</gi> element describing the hand considered responsible for the
Expand Down
35 changes: 35 additions & 0 deletions P5/Test/detest_odd_schematron.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Buildfile: /tei/P5/Test/antruntest.xml

validateodd:
[echo] Validate detest.odd as ODD ...
[echo] ... against RelaxNG (../p5odds.rng) with jing ...
[echo] ... against Schematron (../p5odds.message.isosch.xsl) with Saxon via trax
[xslt] Processing /tei/P5/Test/detest.odd to /dev/null
[xslt] Loading stylesheet /tei/P5/p5odds.message.isosch.xsl
[xslt] Error: both the versionDate and xml:lang attributes on "remarks" are required when it is a child of "elementSpec". (@xml:lang and @versionDate)
[xslt] Error: both the versionDate and xml:lang attributes on "gloss" are required when it is a child of "elementSpec". (@xml:lang and @versionDate)
[xslt] Error: both the versionDate and xml:lang attributes on "desc" are required when it is a child of "elementSpec". (@xml:lang and @versionDate)
[xslt] Error: both the versionDate and xml:lang attributes on "gloss" are required when it is a child of "attDef". (@xml:lang and @versionDate)
[xslt] Error: both the versionDate and xml:lang attributes on "remarks" are required when it is a child of "elementSpec". (@xml:lang and @versionDate)
[xslt] An element reference is not repeatable when part of a schema specification (and thus this &lt;elementRef&gt; should not have @minOccurs or @maxOccurs). (@minOccurs | @maxOccurs / error)
[xslt] An element reference within a content model must refer to a locally defined element specification (and thus this &lt;elementRef&gt; should not have @source). (@source / error)
[xslt] In the context of tagset documentation, the listRef element must not self-nest. (tei:listRef)
[xslt] In the context of tagset documentation, each ptr or ref element inside a listRef must have a target attribute with only 1 pointer as its value. (@target and not( matches( @target,'\s') ))
[xslt] In the context of tagset documentation, each ptr or ref element inside a listRef must have a target attribute with only 1 pointer as its value. (@target and not( matches( @target,'\s') ))
[xslt] class membership (in this case of l) should be specified in sorted order, except att.global goes first. (string-join( $keys_as_specified ) eq string-join( $keys_in_order ))
[xslt] Rules in the ISO Schematron language must be inside a constraintSpec with the value 'schematron' on the scheme attribute (tei:constraint/sch:* and not( @scheme eq 'schematron'))
[xslt] Rules in the ISO Schematron language must be inside a constraintSpec with the value 'schematron' on the scheme attribute (tei:constraint/sch:* and not( @scheme eq 'schematron'))
[xslt] Rules in the ISO Schematron language must be inside a constraintSpec with the value 'schematron' on the scheme attribute (tei:constraint/sch:* and not( @scheme eq 'schematron'))
[xslt] The use of an &lt;sch:assert&gt; or &lt;sch:report&gt; that does not have a context (i.e., does not have an ancestor &lt;sch:rule&gt; with a @context attribute) in an ISO Schematron constraint specification is deprecated, and will become invalid after 2025-03-15. (( $assertsHaveContext, $reportsHaveContext ) = false() / warning)
[xslt] The @scheme attribute of &lt;constraintSpec&gt; is required when the @mode is not specified (here on "add_missing_scheme") (@scheme)
[xslt] The @scheme attribute of &lt;constraintSpec&gt; is required when the @mode is "replace" (here on "replace_missing_scheme") (@scheme)
[xslt] The @scheme attribute of &lt;constraintSpec&gt; is required when the @mode is not specified (here on "add_missing_scheme") (@scheme)
[xslt] The @scheme attribute of &lt;constraintSpec&gt; is required when the @mode is "replace" (here on "replace_missing_scheme") (@scheme)
[xslt] Since the @default-is-in-list-req attribute is required, it will always be specified. Thus the default value (of "ONE") will never be used. Either change the definition of the attribute so it is not required ("rec" or "opt"), or remove the defaultVal element. (tei:defaultVal)
[xslt] Since the @default-NOT-in-list-req attribute is required, it will always be specified. Thus the default value (of "ONE") will never be used. Either change the definition of the attribute so it is not required ("rec" or "opt"), or remove the defaultVal element. (tei:defaultVal)
[xslt] In the elementSpec defining blort2 the default value of the @default-NOT-in-list-opt attribute is not among the closed list of possible values (string(tei:defaultVal) = tei:valList/tei:valItem/@ident)
[xslt] In the elementSpec defining blort2 the default value of the @default-NOT-in-list-rec attribute is not among the closed list of possible values (string(tei:defaultVal) = tei:valList/tei:valItem/@ident)
[xslt] In the elementSpec defining blort2 the default value of the @default-NOT-in-list-req attribute is not among the closed list of possible values (string(tei:defaultVal) = tei:valList/tei:valItem/@ident)

BUILD SUCCESSFUL
Total time: 0 seconds
79 changes: 79 additions & 0 deletions P5/Test/detest_xml_relaxng.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
detest.xml
detest.xml:78:13: error: unfinished content of element http://www.tei-c.org/ns/1.0^lg
required:
element http://www.tei-c.org/ns/1.0^l
element http://www.tei-c.org/ns/1.0^stage
element http://www.tei-c.org/ns/1.0^desc
element http://www.tei-c.org/ns/1.0^label
element http://www.tei-c.org/ns/1.0^lg
detest.xml:195:10: error: attribute ^truth with invalid value "no"
required:
data http://www.w3.org/2001/XMLSchema-datatypes^boolean
detest.xml:197:10: error: attribute http://www.w3.org/XML/1998/namespace^lang not allowed
required:
after
detest.xml:200:10: error: attribute ^enumerated with invalid value " dog breath"
required:
data http://www.w3.org/2001/XMLSchema-datatypes^token
detest.xml:205:10: error: attribute ^name with invalid value "123"
required:
data http://www.w3.org/2001/XMLSchema-datatypes^Name
detest.xml:214:10: error: unfinished content of element http://www.tei-c.org/ns/1.0^lg
required:
element http://www.tei-c.org/ns/1.0^l
detest.xml:241:37: error: invalid data or text not allowed
required:
element http://www.tei-c.org/ns/1.0^add
element http://www.tei-c.org/ns/1.0^surplus
element http://www.tei-c.org/ns/1.0^del
element http://www.tei-c.org/ns/1.0^milestone
element http://www.tei-c.org/ns/1.0^gb
element http://www.tei-c.org/ns/1.0^pb
element http://www.tei-c.org/ns/1.0^lb
element http://www.tei-c.org/ns/1.0^cb
element http://www.tei-c.org/ns/1.0^fw
element http://www.tei-c.org/ns/1.0^anchor
detest.xml:261:11: error: attribute ^target with invalid value "#spanTest"
required:
data http://www.w3.org/2001/XMLSchema-datatypes^anyURI
detest.xml:267:11: error: missing attributes of http://www.tei-c.org/ns/1.0^media
required:
attribute ^url
detest.xml:268:11: error: missing attributes of http://www.tei-c.org/ns/1.0^media
required:
attribute ^mimeType
detest.xml:274:51: error: invalid data or text not allowed
required:
after
detest.xml:275:41: error: invalid data or text not allowed
required:
after
detest.xml:276:61: error: invalid data or text not allowed
required:
after
detest.xml:277:25: error: invalid data or text not allowed
required:
after
detest.xml:341:12: error: element http://www.tei-c.org/ns/1.0^altIdentifier not allowed
required:
element http://www.tei-c.org/ns/1.0^msIdentifier
detest.xml:344:10: error: unfinished content of element http://www.tei-c.org/ns/1.0^msPart
required:
element http://www.tei-c.org/ns/1.0^msIdentifier
detest.xml:373:10: error: element http://www.tei-c.org/ns/1.0^idno not allowed
required:
after
allowed:
element http://www.tei-c.org/ns/1.0^series
element http://www.tei-c.org/ns/1.0^monogr
element http://www.tei-c.org/ns/1.0^note
element http://www.tei-c.org/ns/1.0^noteGrp
element http://www.tei-c.org/ns/1.0^ptr
element http://www.tei-c.org/ns/1.0^ref
element http://www.tei-c.org/ns/1.0^listRef
element http://www.tei-c.org/ns/1.0^relatedItem
element http://www.tei-c.org/ns/1.0^citedRange
detest.xml:451:12: error: attribute ^target with invalid value ""
required:
data http://www.w3.org/2001/XMLSchema-datatypes^anyURI
error: some documents are invalid
41 changes: 41 additions & 0 deletions P5/Test/detest_xml_schematron.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
The @generatedBy attribute is for use within a &lt;post&gt; element. (ancestor-or-self::tei:post)
The @generatedBy attribute is for use within a &lt;post&gt; element. (ancestor-or-self::tei:post)
The element indicated by @spanTo (#ds2) must follow the current delSpan element (id( substring( @spanTo, 2 ) ) &gt;&gt; .)
@schemeVersion can only be used if @scheme is specified. (@scheme and not(@scheme = 'free'))
The abbr element should not be categorized in detail with @subtype unless also categorized in general with @type (@type)
The div element should not be categorized in detail with @subtype unless also categorized in general with @type (@type)
@calendar indicates one or more systems or calendars to which the date represented by the content of this element belongs, but this date element has no textual content. (string-length( normalize-space(.) ) gt 0)
The content of a "gloss" list should include a sequence of one or more pairs of a label element followed by an item element (tei:label)
An lg element must contain at least one child l, lg, or gap element. (count(descendant::tei:lg|descendant::tei:l|descendant::tei:gap) &gt; 0)
On quotation, either the @marks attribute should be used, or a paragraph of description provided (not( @marks ) and not( tei:p ))
You may not nest one s element within another: use seg instead (tei:s)
Only one of the attributes @target and @from may be supplied on span
(@from and @target)
Only one of the attributes @target and @to may be supplied on span
(@to and @target)
If @to is supplied on span, @from must be supplied as well (@to and not(@from))
The @location value "external" is inconsistent with the parallel-segmentation method of apparatus markup. (@location eq 'external' and @method eq 'parallel-segmentation')
A facsimile element represents a text with images, thus transcribed text should not be present within it. (child::text()[ normalize-space(.) ne ''])
A facsimile element represents a text with images, thus transcribed text should not be present within it. (child::text()[ normalize-space(.) ne ''])
A facsimile element represents a text with images, thus transcribed text should not be present within it. (child::text()[ normalize-space(.) ne ''])
A facsimile element represents a text with images, thus transcribed text should not be present within it. (child::text()[ normalize-space(.) ne ''])
A facsimile element represents a text with images, thus transcribed text should not be present within it. (child::text()[ normalize-space(.) ne ''])
A facsimile element represents a text with images, thus transcribed text should not be present within it. (child::text()[ normalize-space(.) ne ''])
A facsimile element represents a text with images, thus transcribed text should not be present within it. (child::text()[ normalize-space(.) ne ''])
A facsimile element represents a text with images, thus transcribed text should not be present within it. (child::text()[ normalize-space(.) ne ''])
The @spanTo attribute of delSpan is required. (@spanTo)
The @spanTo attribute of delSpan is required. (@spanTo)
subst must have at least one child add and at least one child del or surplus (child::tei:add and (child::tei:del or child::tei:surplus))
subst must have at least one child add and at least one child del or surplus (child::tei:add and (child::tei:del or child::tei:surplus))
subst must have at least one child add and at least one child del or surplus (child::tei:add and (child::tei:del or child::tei:surplus))
subst must have at least one child add and at least one child del or surplus (child::tei:add and (child::tei:del or child::tei:surplus))
subst must have at least one child add and at least one child del or surplus (child::tei:add and (child::tei:del or child::tei:surplus))
subst must have at least one child add and at least one child del or surplus (child::tei:add and (child::tei:del or child::tei:surplus))
Only one physDesc is allowed as a child of msDesc. (preceding-sibling::*[ name(.) eq $gi ] and not( following-sibling::*[ name(.) eq $gi ] ))
Only one history is allowed as a child of msDesc. (preceding-sibling::*[ name(.) eq $gi ] and not( following-sibling::*[ name(.) eq $gi ] ))
Only one additional is allowed as a child of msDesc. (preceding-sibling::*[ name(.) eq $gi ] and not( following-sibling::*[ name(.) eq $gi ] ))
In the context of tagset documentation, the listRef element must not self-nest. (tei:listRef)
In the context of tagset documentation, each ptr or ref element inside a listRef must have a target attribute with only 1 pointer as its value. (@target and not( matches( @target,'\s') ))
In the context of tagset documentation, each ptr or ref element inside a listRef must have a target attribute with only 1 pointer as its value. (@target and not( matches( @target,'\s') ))
The @new attribute should always be supplied; use the special value "normal" to indicate that the feature concerned ceases to be remarkable at this point. (@new / warning)
Abstract model violation: Metrical 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. (ancestor::tei:floatingText | parent::tei:figure | parent::tei:note)
Loading