-
Notifications
You must be signed in to change notification settings - Fork 88
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
Created constraintDecl #2596
Closed
Closed
Created constraintDecl #2596
Changes from all commits
Commits
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,83 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright TEI Consortium. | ||
Dual-licensed under CC-by and BSD2 licences | ||
See the file COPYING.txt for details | ||
$Date$ | ||
$Id$ | ||
--> | ||
<?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="constraintDecl"> | ||
<gloss versionDate="2023-03-09" xml:lang="en">constraint declaration</gloss> | ||
<desc versionDate="2023-03-09" xml:lang="en">contains declarations pertaining to formal constraints expressed elsewhere in <gi>constraintSpec</gi> elements</desc> | ||
<classes> | ||
<memberOf key="att.global"/> | ||
</classes> | ||
<content> | ||
<sequence> | ||
<alternate minOccurs="0" maxOccurs="unbounded"> | ||
<classRef key="model.identEquiv"/> | ||
<classRef key="model.descLike"/> | ||
</alternate> | ||
<anyElement minOccurs="0" maxOccurs="unbounded"/> | ||
</sequence> | ||
</content> | ||
<attList> | ||
<attDef ident="scheme" usage="req"> | ||
<desc versionDate="2023-03-09" xml:lang="en">supplies the name of the language to which the declarations herein apply</desc> | ||
<datatype><dataRef key="teidata.enumerated"/></datatype> | ||
<valList type="semi"> | ||
<valItem ident="schematron"> | ||
<gloss versionDate="2016-09-27" xml:lang="en">ISO Schematron</gloss> | ||
</valItem> | ||
</valList> | ||
<remarks versionDate="2023-03-09" xml:lang="en"> | ||
<p>The declarations contained in a particular | ||
<gi>constraintDecl</gi> apply to the <gi>constraintSpec</gi> | ||
elements whose <att>scheme</att> matches the <att>scheme</att> | ||
of the <gi>constraintDecl</gi>.</p> | ||
</remarks> | ||
</attDef> | ||
<attDef ident="queryBinding" usage="rec"> | ||
<gloss xml:lang="en" versionDate="2023-03-09">query language binding</gloss> | ||
<desc xml:lang="en" versionDate="2023-03-09">specifies the query | ||
language binding for rule-based schema expressions in | ||
<gi>constraintSpec</gi> elements that have a matching | ||
<att>scheme</att> attribute</desc> | ||
<datatype><dataRef key="teidata.enumerated"/></datatype> | ||
<valList type="semi"> | ||
<valItem ident="exslt"/> | ||
<valItem ident="stx"/> | ||
<valItem ident="xslt"/> | ||
<valItem ident="xslt2"/> | ||
<valItem ident="xslt3"/> | ||
<valItem ident="xpath"/> | ||
<valItem ident="xpath2"/> | ||
<valItem ident="xpath3"/> | ||
<valItem ident="xpath31"/> | ||
<valItem ident="xquery"/> | ||
<valItem ident="xquery3"/> | ||
<valItem ident="xquery31"/> | ||
</valList> | ||
<remarks versionDate="2023-03-09" xml:lang="en"> | ||
<p>The suggested values above are the values reserved by the | ||
Schematron specification. Only <val>exslt</val>, | ||
<val>stx</val>, <val>xslt</val>, <val>xslt2</val>, | ||
<val>xslt3</val>, <val>xpath2</val>, and <val>xpath3</val> are | ||
defined by the specification. Most processors only support a | ||
subset of <val>xslt</val>, <val>xslt2</val>, and | ||
<val>xslt3</val>.</p> | ||
</remarks> | ||
</attDef> | ||
</attList> | ||
<exemplum xml:lang="en"> | ||
<egXML xmlns="http://www.tei-c.org/ns/Examples"> | ||
<constraintDecl scheme="schematron" queryBinding="xslt3"> | ||
<sch:ns prefix="wwp" uri="http://www.wwp.northeastern.edu/ns/textbase"/> | ||
</constraintDecl> | ||
</egXML> | ||
</exemplum> | ||
<listRef> | ||
<ptr target="#TDTAGCONS"/> | ||
</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
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.
Note that this seems to result in relaxng that does not represent the ODD's model, but it may be a separate issue.
Expected:
Actual: