[library-web] support for passing additional parameters to xsltproc
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [library-web] support for passing additional parameters to xsltproc
- Date: Sun, 9 Aug 2009 18:32:50 +0000 (UTC)
commit 4422aa2049db6ac428b5e7d29d5500c6d6527990
Author: Frédéric Péters <fpeters 0d be>
Date: Sun Aug 9 19:45:13 2009 +0200
support for passing additional parameters to xsltproc
src/modtypes/htmlfiles.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/modtypes/htmlfiles.py b/src/modtypes/htmlfiles.py
index 34a1b69..3790208 100644
--- a/src/modtypes/htmlfiles.py
+++ b/src/modtypes/htmlfiles.py
@@ -36,6 +36,7 @@ class HtmlFilesModule(DocModule):
transform_mode = None
index_filename = None
tarball_doc_elem = None
+ extra_xslt_attribs = None
html2html_xsl_file = os.path.join(data_dir, 'xslt', 'html2html.xsl')
@@ -103,6 +104,11 @@ class HtmlFilesModule(DocModule):
cmd.insert(-2, '--stringparam')
cmd.insert(-2, 'libgo.h2hmode')
cmd.insert(-2, self.transform_mode)
+ if self.extra_xslt_attribs:
+ for k in self.extra_xslt_attribs:
+ cmd.insert(-2, '--stringparam')
+ cmd.insert(-2, 'libgo.%s' % k)
+ cmd.insert(-2, self.extra_xslt_attribs[k])
rc = subprocess.call(cmd)
else:
# simply copy HTML files shipped in tarball
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]