diff --git a/scripts/rnc_to_analysis.sh b/scripts/rnc_to_analysis.sh
index 3533b17..db4737f 100755
--- a/scripts/rnc_to_analysis.sh
+++ b/scripts/rnc_to_analysis.sh
@@ -89,10 +89,8 @@ xsltproc --stringparam out-name "$rng_simplified_arg" stylesheets/rnc_simplifica
echo "simplified rng -> analysis: '$rng_simplified' -> '$output_dir/{2_flattened.xml,3_serialized.txt}'"
-debug_modules_options=
-for mod in "${debug_modules[@]}"; do
- debug_modules_options="$debug_modules_options debug_$mod=1"
-done
+debug_modules_options="debug_modules=${debug_modules[@]}"
+
# echo "debug_modules_options: $debug_modules_options"
$SCRIPT_DIR/local_stylesheet.sh \
--input-dir "$output_dir" \
diff --git a/stylesheets/rng_to_odd/analysis_to_odd/define_to_schematron.xsl b/stylesheets/rng_to_odd/analysis_to_odd/define_to_schematron.xsl
index bef4752..565bae6 100644
--- a/stylesheets/rng_to_odd/analysis_to_odd/define_to_schematron.xsl
+++ b/stylesheets/rng_to_odd/analysis_to_odd/define_to_schematron.xsl
@@ -101,8 +101,8 @@
):
-
-
+
+
diff --git a/stylesheets/rng_to_odd/analysis_to_odd/xpath_cond_from_rng.xsl b/stylesheets/rng_to_odd/analysis_to_odd/xpath_cond_from_rng.xsl
index 0baf82a..2fe10c5 100644
--- a/stylesheets/rng_to_odd/analysis_to_odd/xpath_cond_from_rng.xsl
+++ b/stylesheets/rng_to_odd/analysis_to_odd/xpath_cond_from_rng.xsl
@@ -127,7 +127,7 @@
-
+
@@ -277,7 +277,7 @@
-
+
+
+
+
@@ -25,6 +28,15 @@
+
+
+
+
+
+
+
+
@@ -32,6 +44,15 @@
+
+
+
+
+
+
+
+
@@ -39,6 +60,15 @@
+
+
+
+
+
+
+
+
@@ -46,6 +76,15 @@
+
+
+
+
+
+
+
+
@@ -55,67 +94,89 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
- [DEBUG]:
+ [DEBUG]:
- [INFO]:
+ [INFO]:
- [WARNING]:
+ [WARNING]:
- [ERROR]: . Exiting.
+ [ERROR]: . Exiting.
diff --git a/stylesheets/rng_to_odd/rng_to_analysis.xsl b/stylesheets/rng_to_odd/rng_to_analysis.xsl
index 6350a10..1e381b3 100644
--- a/stylesheets/rng_to_odd/rng_to_analysis.xsl
+++ b/stylesheets/rng_to_odd/rng_to_analysis.xsl
@@ -29,8 +29,11 @@ as officially documented here: https://relaxng.org/spec.html#simple-syntax
+
+