-
Notifications
You must be signed in to change notification settings - Fork 87
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
Add interleave
element (and deprecate sequence/@preserveOrder
)
#2538
Open
joeytakeda
wants to merge
11
commits into
dev
Choose a base branch
from
iss2154_interleave
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a681495
Initial work on `tei:interleave` per #2154
joeytakeda c99fa45
Add the interleave spec file
joeytakeda 4b2c180
Adding interleave to specGrp
joeytakeda e1b8e77
Fix duplicate constraintSpec ident
joeytakeda e556a8d
latest from dev
sydb 0e86aac
Add interleave xmp
sydb b5f31ff
Minor wording tweaks
sydb 1bc877a
Tweak xmp
sydb d651de7
First crack at health warning for DTD generation
sydb 95f1613
Do not allow interleave in GLs:
sydb eae6597
merge in latest from dev
sydb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?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"?> | ||
<elementSpec xmlns="http://www.tei-c.org/ns/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" module="tagdocs" ident="interleave"> | ||
<desc versionDate="2024-03-16" xml:lang="en">indicates that the constructs referenced by its children occur in any order (i.e. are interleaved)</desc> | ||
<classes> | ||
<memberOf key="att.global"/> | ||
<memberOf key="model.contentPart"/> | ||
<memberOf key="att.repeatable"/> | ||
</classes> | ||
<content> | ||
<classRef key="model.contentPart" maxOccurs="unbounded"/> | ||
</content> | ||
<constraintSpec ident="interleavechilden" scheme="schematron"> | ||
<constraint> | ||
<sch:rule context="tei:interleave"> | ||
<sch:assert test="count(*) gt 1">The interleave element must have at least two child elements</sch:assert> | ||
</sch:rule> | ||
</constraint> | ||
</constraintSpec> | ||
<exemplum xml:lang="en"> | ||
<egXML xmlns="http://www.tei-c.org/ns/Examples" xml:lang="en" source="#UND"> | ||
<content> | ||
<interleave> | ||
<elementRef key="persName"/> | ||
<alternate minOccurs="0"> | ||
<elementRef key="placeName"/> | ||
<elementRef key="location"/> | ||
</alternate> | ||
<elementRef key="note" minOccurs="0"/> | ||
</interleave> | ||
</content> | ||
</egXML> | ||
<p>This example describes a content model that consists of a | ||
mandatory <gi>persName</gi> element, zero or one of either | ||
<gi>placeName</gi> or <gi>location</gi>, and an optional | ||
<gi>note</gi> element, in any order.</p> | ||
<!-- <p>To express this content model in the DTD language one might use | ||
<eg xml:space="preserve"><![CDATA[ ( persName | ||
| ( persName, note ) | ||
| ( persName, ( placeName | location ) ) | ||
| ( note, persName ) | ||
| ( ( placeName | location ), persName ) | ||
| ( persName, note, ( placeName | location ) ) | ||
| ( persName, ( placeName | location ), note ) | ||
| ( note, persName, ( placeName | location ) ) | ||
| ( note, ( placeName | location ), persName ) | ||
| ( ( placeName | location ), note, persName ) | ||
| ( ( placeName | location ), persName, note ) | ||
)]]></eg></p> --> | ||
</exemplum> | ||
<remarks xml:lang="en" versionDate="2024-07-20"> | ||
<p>If a TEI description of an XML markup language (often referred | ||
to as an <q>ODD</q>) makes use of this element, current processing | ||
software will not be able to generate a DTD from it. For this reason | ||
TEI P5 itself does not make use of <gi>interleave</gi> internally.</p> | ||
</remarks> | ||
<listRef> | ||
<ptr target="#DEFCON" type="div2"/> | ||
</listRef> | ||
</elementSpec> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,8 @@ | |
</constraint> | ||
</constraintSpec> | ||
<attList> | ||
<attDef ident="preserveOrder"> | ||
<attDef ident="preserveOrder" validUntil="2025-03-15"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given that a) |
||
<desc type="deprecationInfo" versionDate="2024-03-15" xml:lang="en">The <att>preserveOrder</att> on <gi>sequence</gi> has been deprecated. The <gi>interleave</gi> element should be used to denote unordered constructs.</desc> | ||
<desc versionDate="2023-03-21" xml:lang="en">if false, indicates that | ||
component elements of a sequence may occur in any order.</desc> | ||
<datatype><dataRef key="teidata.truthValue"/></datatype> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can-of-worms department.
(Note to @joeytakeda — most of the problem here is not from your improvement, but has been here all along and is just foregrounded by your change.)
This sentence does not mention that cardinality of the stuff inside
<interleave>
. But on thinking of how to re-word it, I realize that these sentences discuss the cardinality of references, when what we are talking about is the cardinality of the thing referenced. I am not sure what, if anything, we should do about this.