diff --git a/scripts/local_stylesheet.sh b/scripts/local_stylesheet.sh
index fc21c59..e535b6e 100755
--- a/scripts/local_stylesheet.sh
+++ b/scripts/local_stylesheet.sh
@@ -15,7 +15,7 @@ STYLESHEET_DIR="$BASE_DIR/stylesheets"
NAME_PATTERN='*'
SUFFIX='.xml'
CACHE=
-SAXON_ARGS=
+SAXON_ARGS=()
OUTPUT_DIR=
@@ -82,7 +82,7 @@ while [[ $# > 0 ]]; do
;;
-o | --options)
shift
- SAXON_ARGS="$SAXON_ARGS $1"
+ SAXON_ARGS+=( "$1" )
shift
;;
-c | --cache)
@@ -137,7 +137,7 @@ java -jar "$DEP_DIR/Stylesheets/lib/saxon9he.jar"
"$STYLESHEET_DIR/$STYLESHEET"
-s:"$file"
-o:"$OUTPUT_DIR/$output"
- $SAXON_ARGS
+ ${SAXON_ARGS[*]}
EOF
if [[ $CACHE ]] && [[ -e $OUTPUT_DIR/$output ]]; then
echo "'$OUTPUT_DIR/$output' already exists, skipping..."
diff --git a/scripts/rnc_analysis_to_odd.sh b/scripts/rnc_analysis_to_odd.sh
index 0950f3a..c369271 100755
--- a/scripts/rnc_analysis_to_odd.sh
+++ b/scripts/rnc_analysis_to_odd.sh
@@ -30,7 +30,7 @@ function print_help {
echo " -h | --help: print this help"
echo " -i|--input-dir INPUT. directory containing analysis results created by $SCRIPT_DIR/rnc_analyse.sh. default: '$input_dir'"
echo " -o|--output-dir OUTPUT_DIR. default: '$output_dir'"
- echo " -m|--modules 'MODULE1 MODULE2'. Overwrite which TEI modules to include"
+ echo " -m|--modules 'MODULE1,MODULE2'. Overwrite which TEI modules to include"
echo " -v|--verbosity (0: only errors, 1: warnings, 2: info, 3: debug). default: $verbosity"
echo " -d|--debug-module VAL (multiple options accumulate): send debug messages for the specific module"
}
@@ -90,6 +90,8 @@ fi
if [[ "$modules" != "" ]]; then
module_param="modules=$modules"
+else
+ module_param=
fi
mkdir -p "$output_dir"
diff --git a/scripts/update_output.sh b/scripts/update_output.sh
index 577dda6..1d098f3 100755
--- a/scripts/update_output.sh
+++ b/scripts/update_output.sh
@@ -104,6 +104,7 @@ $SCRIPT_DIR/rnc_analysis_to_odd.sh \
--verbosity 3 \
--input-dir "$INTERMEDIATE_DIR/s2/prepare/rnc_analysis" \
--output-dir "$INTERMEDIATE_DIR/s2/odd" \
+ --modules 'core,tei,header,namesdates,figures,transcr,linking,textstructure' \
>$INTERMEDIATE_DIR/s2/logs/rnc_analysis_to_odd.log \
2>&1
diff --git a/stylesheets/rng_to_odd/analysis_to_odd.xsl b/stylesheets/rng_to_odd/analysis_to_odd.xsl
index fff5da6..d720adb 100644
--- a/stylesheets/rng_to_odd/analysis_to_odd.xsl
+++ b/stylesheets/rng_to_odd/analysis_to_odd.xsl
@@ -20,7 +20,8 @@
-
+
+
@@ -45,7 +46,7 @@
-
+
@@ -75,7 +76,7 @@
ODDfromRnc
-
+