From 6802d5e4a933d30d184c075161a75ad36afe4f94 Mon Sep 17 00:00:00 2001
From: Amanda Galtman <40716346+galtm@users.noreply.github.com>
Date: Wed, 10 Apr 2024 09:18:33 -0400
Subject: [PATCH] Sample code for "Testing Schematron Messages with XSpec 3.0"
(#38)
---
README.md | 3 +-
src/schematron-messages/README.md | 20 +++++++++++++
.../schematron-messages-report.sch | 23 ++++++++++++++
.../schematron-messages-report.xspec | 27 +++++++++++++++++
.../schematron-messages-with-diag.sch | 30 +++++++++++++++++++
.../schematron-messages-with-diag.xspec | 29 ++++++++++++++++++
.../schematron-messages.sch | 22 ++++++++++++++
.../schematron-messages.xml | 15 ++++++++++
.../schematron-messages.xspec | 26 ++++++++++++++++
9 files changed, 194 insertions(+), 1 deletion(-)
create mode 100644 src/schematron-messages/README.md
create mode 100644 src/schematron-messages/schematron-messages-report.sch
create mode 100644 src/schematron-messages/schematron-messages-report.xspec
create mode 100644 src/schematron-messages/schematron-messages-with-diag.sch
create mode 100644 src/schematron-messages/schematron-messages-with-diag.xspec
create mode 100644 src/schematron-messages/schematron-messages.sch
create mode 100644 src/schematron-messages/schematron-messages.xml
create mode 100644 src/schematron-messages/schematron-messages.xspec
diff --git a/README.md b/README.md
index aae6b91..26c2c19 100644
--- a/README.md
+++ b/README.md
@@ -17,11 +17,12 @@ Each post corresponds to a [subfolder under `src/`](https://github.com/galtm/xsp
* [Multiple Cases in One XSpec Scenario](https://github.com/galtm/xspectacles/tree/main/src/context-sequence)
* [One-or-More Ways to Foil Empty-Sequence Surprises in XSpec](https://github.com/galtm/xspectacles/tree/main/src/one-or-more)
* [Saying "Almost Valid" or "Beyond Valid" in XSpec Tests for Schematron](https://github.com/galtm/xspectacles/tree/main/src/almost-valid)
-* **(NEW!)** [Saying "Not Yet" in XSpec](https://github.com/galtm/xspectacles/tree/main/src/pending)
+* [Saying "Not Yet" in XSpec](https://github.com/galtm/xspectacles/tree/main/src/pending)
* [Saying "Whatever" in XSpec: How, Why, When](https://github.com/galtm/xspectacles/tree/main/src/three-dots)
* [Testing a Thin-Wrapper XSLT Template Without Excessive Repetition](https://github.com/galtm/xspectacles/tree/main/src/similar-code-wrapper)
* [Testing Boolean-Valued Functions: An XSpec Blooper with Easy Fixes](https://github.com/galtm/xspectacles/tree/main/src/boolean-fcn)
* [Testing Explicit Whitespace in XSpec](https://github.com/galtm/xspectacles/tree/main/src/space-explicit)
+* **(NEW!)** [Testing Schematron Messages with XSpec 3.0](https://github.com/galtm/xspectacles/tree/main/src/schematron-messages)
* [Testing Preformatted or Codelike Text in XSpec](https://github.com/galtm/xspectacles/tree/main/src/space-preformatted)
* [Testing Schematron Patterns in Isolation](https://github.com/galtm/xspectacles/tree/main/src/isolated-patterns)
* [The Equality Check that's Neither True Nor False](https://github.com/galtm/xspectacles/tree/main/src/non-boolean-eq)
diff --git a/src/schematron-messages/README.md b/src/schematron-messages/README.md
new file mode 100644
index 0000000..1b8b552
--- /dev/null
+++ b/src/schematron-messages/README.md
@@ -0,0 +1,20 @@
+# Sample code for "Testing Schematron Messages with XSpec 3.0"
+
+Primary example files:
+
+* `schematron-messages.sch`
+* `schematron-messages.xspec`
+* `schematron-messages.xml`
+
+"Verifying Report Messages":
+
+* `schematron-messages-report.sch`
+* `schematron-messages-report.xspec`
+
+"Verifying Diagnostic Messages":
+
+* `schematron-messages-with-diag.sch`
+* `schematron-messages-with-diag.xspec`
+
+#### Link to Topic
+[Testing Schematron Messages with XSpec 3.0](https://medium.com/@xspectacles/testing-schematron-messages-with-xspec-3-0-1adc9be69a4d)
diff --git a/src/schematron-messages/schematron-messages-report.sch b/src/schematron-messages/schematron-messages-report.sch
new file mode 100644
index 0000000..ae8319b
--- /dev/null
+++ b/src/schematron-messages/schematron-messages-report.sch
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+ Subsection must not contain info. Move children to
+ "" info.
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/schematron-messages/schematron-messages-report.xspec b/src/schematron-messages/schematron-messages-report.xspec
new file mode 100644
index 0000000..9bd6f55
--- /dev/null
+++ b/src/schematron-messages/schematron-messages-report.xspec
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+ Subsection must not contain info.
+ Move children to "Top-Level Section" info.
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/schematron-messages/schematron-messages-with-diag.sch b/src/schematron-messages/schematron-messages-with-diag.sch
new file mode 100644
index 0000000..4ff65c2
--- /dev/null
+++ b/src/schematron-messages/schematron-messages-with-diag.sch
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+ Subsection must not contain info. Move children to
+ "" info.
+
+
+
+
+
+ [WG 1.2]
+ [WG 1.3]
+
+
+
+
+
\ No newline at end of file
diff --git a/src/schematron-messages/schematron-messages-with-diag.xspec b/src/schematron-messages/schematron-messages-with-diag.xspec
new file mode 100644
index 0000000..e2abb5d
--- /dev/null
+++ b/src/schematron-messages/schematron-messages-with-diag.xspec
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+ Subsection must not contain info.
+ Move children to "Top-Level Section" info.
+
+ [WG 1.2] q
+
+
+
+
+
\ No newline at end of file
diff --git a/src/schematron-messages/schematron-messages.sch b/src/schematron-messages/schematron-messages.sch
new file mode 100644
index 0000000..0a6e5d4
--- /dev/null
+++ b/src/schematron-messages/schematron-messages.sch
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+ Subsection must not contain info. Move children to
+ "" info.
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/schematron-messages/schematron-messages.xml b/src/schematron-messages/schematron-messages.xml
new file mode 100644
index 0000000..897dc7d
--- /dev/null
+++ b/src/schematron-messages/schematron-messages.xml
@@ -0,0 +1,15 @@
+
+
+
+ Top-Level Section
+
+ Introductory content
+
+ Subsection
+
+ TSE
+
+ Subsection content
+
+
+
\ No newline at end of file
diff --git a/src/schematron-messages/schematron-messages.xspec b/src/schematron-messages/schematron-messages.xspec
new file mode 100644
index 0000000..ee34ab6
--- /dev/null
+++ b/src/schematron-messages/schematron-messages.xspec
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+ Subsection must not contain info.
+ Move children to "Top-Level Section" info.
+
+
+
+
+
+
\ No newline at end of file