summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wille <mw8329@yahoo.com.au>2003-07-18 10:40:23 +0000
committerMartin Wille <mw8329@yahoo.com.au>2003-07-18 10:40:23 +0000
commit8e7e9ab8fca50a5233a2e5249bf582b2af8a3440 (patch)
tree0d436bad14748cd8cd4a47f5514ad1e8bb108a3b
parente53afebc737174bb9047de25677c46850208b462 (diff)
downloadboost-8e7e9ab8fca50a5233a2e5249bf582b2af8a3440.tar.gz
-- added support for libxslt
[SVN r19189]
-rw-r--r--tools/regression/xsl_reports/report.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/tools/regression/xsl_reports/report.py b/tools/regression/xsl_reports/report.py
index c2536afdde..3900778991 100644
--- a/tools/regression/xsl_reports/report.py
+++ b/tools/regression/xsl_reports/report.py
@@ -123,9 +123,23 @@ def msxsl( xml_file, xsl_file, output_file, parameters = None ):
log( transform_command )
os.system( transform_command )
+def libxslt( xml_file, xsl_file, output_file, parameters = None ):
+ transform_command = "xsltproc"
+ transform_command = transform_command + ' -o ' + "%s" % output_file
+
+ if parameters is not None:
+ for i in parameters:
+ transform_command = transform_command + ' --param %s "\'%s\'" ' % ( i, parameters[ i ] )
+
+ transform_command = transform_command + ' "%s" ' % xsl_file
+ transform_command = transform_command + ' "%s" ' % xml_file
+ log( transform_command )
+ os.system( transform_command )
+
registered_xsltprocs = { "msxsl": msxsl
, "xalan": xalan
+ , "libxslt": libxslt
}
def xsl_path( xsl_file_name ):
@@ -246,7 +260,7 @@ def usage():
\t--comment an html comment file (will be inserted in the reports)
\t--results-prefix the prefix of -links.html, -fail.html
\t files produced by compiler_status
-\t--xsltproc the name of xslt processor (msxsl, xalan)
+\t--xsltproc the name of xslt processor (msxsl, xalan, libxslt)
"""
def main():