From 2b4e5e621b35f0cefa02d2623bf9d771cbb578b5 Mon Sep 17 00:00:00 2001 From: EsGeh Date: Mon, 5 Aug 2019 16:05:47 +0200 Subject: [PATCH] output dbg msgs only if 'debug_modules' param contains corresp. module --- scripts/rnc_to_analysis.sh | 6 +- .../analysis_to_odd/define_to_schematron.xsl | 4 +- .../analysis_to_odd/xpath_cond_from_rng.xsl | 6 +- .../xpath_cond_from_rng_attributes.xsl | 8 +-- stylesheets/rng_to_odd/common/print.xsl | 71 +++++++++++++++++-- stylesheets/rng_to_odd/rng_to_analysis.xsl | 3 + .../rng_to_analysis/rnc_analyse_structure.xsl | 20 +++--- .../rng_to_odd/rng_to_analysis/rng_to_dnf.xsl | 59 ++++++++------- .../xpath_unique_expr_advanced.xsl | 37 +++++----- .../xpath_unique_expr_simple.xsl | 2 +- 10 files changed, 139 insertions(+), 77 deletions(-) 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 @@ + + + + + + + + + + + + +