From b585bf381811239e4af4c06612d6e497c1484dc1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 30 Apr 2014 11:16:57 +0200 Subject: [PATCH] Allow xsltproc options to be given in input XML test files Eg: in file.xml will invoke: xsltproc --stringparam medium cd file.xsl file.xml We had to use a different notation for -- because that is otherwise not allowed in XML comments. --- etc/xsl/test_xsl.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/xsl/test_xsl.sh b/etc/xsl/test_xsl.sh index cd1a6ba..83031db 100755 --- a/etc/xsl/test_xsl.sh +++ b/etc/xsl/test_xsl.sh @@ -8,10 +8,11 @@ for x in *.xsl; do echo "$t" for m in ${t}?.xml; do b=`basename $m .xml` + opt=`grep 'xsltproc:' $m|cut -d: -f2|cut -d- -f1|tr '#' '-'` l=$b.log.xml r=$b.res.xml d=$b.dif - xsltproc $x $m >$l + xsltproc $opt $x $m >$l if test -f $r; then if diff $l $r >$d; then rm $d -- 1.7.10.4