From b9ae3e25c0698a25bf48843381b3b2f3646fdc36 Mon Sep 17 00:00:00 2001 From: Raff Viglianti Date: Tue, 1 Oct 2024 13:03:53 -0400 Subject: [PATCH] Created constraintDecl, added it to encodingDesc and schemaSpec; added it to Chap 22 TDTAGCONS --- .../en/TD-DocumentationElements.xml | 16 ++++ P5/Source/Specs/constraintDecl.xml | 83 +++++++++++++++++++ P5/Source/Specs/encodingDesc.xml | 15 ++-- P5/Source/Specs/schemaSpec.xml | 3 +- 4 files changed, 108 insertions(+), 9 deletions(-) create mode 100644 P5/Source/Specs/constraintDecl.xml diff --git a/P5/Source/Guidelines/en/TD-DocumentationElements.xml b/P5/Source/Guidelines/en/TD-DocumentationElements.xml index b579ca4033..d911ed8e1c 100644 --- a/P5/Source/Guidelines/en/TD-DocumentationElements.xml +++ b/P5/Source/Guidelines/en/TD-DocumentationElements.xml @@ -931,6 +931,22 @@ to mark any technical term, thus:

+

Schematron schemas can use a variety of query languages for its expressions, such as XSLT or XQuery. + To declare which query language binding is in use, you may add a constraintDecl to + encodingDesc or schemaSpec. + + +

+

This element can also be used to provide additional declarations pertaining to formal constraints + expressed constraintSpec elements, such as the declaration of a namespace and its prefix.

+ + +

Some information about the encoding

+ + + +
+

Constraints can be expressed using any convenient language. The following example uses a pattern matching language called SPITBOL to express the requirement that title and author should diff --git a/P5/Source/Specs/constraintDecl.xml b/P5/Source/Specs/constraintDecl.xml new file mode 100644 index 0000000000..ec1f0aaab1 --- /dev/null +++ b/P5/Source/Specs/constraintDecl.xml @@ -0,0 +1,83 @@ + + + + + constraint declaration + contains declarations pertaining to formal constraints expressed elsewhere in constraintSpec elements + + + + + + + + + + + + + + + supplies the name of the language to which the declarations herein apply + + + + ISO Schematron + + + +

The declarations contained in a particular + constraintDecl apply to the constraintSpec + elements whose scheme matches the scheme + of the constraintDecl.

+ + + + query language binding + specifies the query + language binding for rule-based schema expressions in + constraintSpec elements that have a matching + scheme attribute + + + + + + + + + + + + + + + + +

The suggested values above are the values reserved by the + Schematron specification. Only exslt, + stx, xslt, xslt2, + xslt3, xpath2, and xpath3 are + defined by the specification. Most processors only support a + subset of xslt, xslt2, and + xslt3.

+
+
+ + + + + + + + + + + + \ No newline at end of file diff --git a/P5/Source/Specs/encodingDesc.xml b/P5/Source/Specs/encodingDesc.xml index 52a8b2eb94..9b2ae0b543 100644 --- a/P5/Source/Specs/encodingDesc.xml +++ b/P5/Source/Specs/encodingDesc.xml @@ -23,14 +23,13 @@ source or sources from which it was derived. - - - - - - - - + + + + + + + diff --git a/P5/Source/Specs/schemaSpec.xml b/P5/Source/Specs/schemaSpec.xml index 02ef7756cf..d9ed2431da 100644 --- a/P5/Source/Specs/schemaSpec.xml +++ b/P5/Source/Specs/schemaSpec.xml @@ -30,10 +30,11 @@ + - +