Merge pull request #4674 from bdbaddog/fix_2281_Aliases_ignore_pre_post_add_actions
[scons.git] / test / Docbook / basedir / slideshtml / image / SConstruct.cmd
blob151e6039c720a01a64f7eb4c70581f139606229b
1 # SPDX-License-Identifier: MIT
3 # Copyright The SCons Foundation
5 import xsltver
7 v = xsltver.detectXsltVersion('/usr/share/xml/docbook/stylesheet/docbook-xsl')
9 ns_ext = ''
10 if v >= (1, 78, 0):
11 # Use namespace-aware input file
12 ns_ext = 'ns'
14 DefaultEnvironment(tools=[])
15 env = Environment(DOCBOOK_PREFER_XSLTPROC=1, tools=['docbook'])
16 env.Append(DOCBOOK_XSLTPROCFLAGS=['--novalid', '--nonet'])
17 env.DocbookSlidesHtml('virt'+ns_ext, xsl='slides.xsl', base_dir='output/')