[Home] [By Thread] [By Date] [Recent Entries]
Tried using use-when with an environmental variable.
<xsl:import href="f/func-exp.xsl"
use-when="system-property('System.getenv('f')')= 'true'" />Error on line 14 of fxslexamples.xsl: XPST0003: Error in use-when expression. XPath syntax error at char 32 on line 14 in {...-property('System.getenv('f...}: expected ")", found name "f" Failed to compile stylesheet. 1 error detected. Changed the quotes to
<xsl:import href="f/func-exp.xsl"
use-when="system-property('System.getenv("f")')= 'true'" />
and getError on line 14 column 43 of fxslexamples.xsl: SXXP0003: Error reported by XML parser: Element type "xsl:import" must be followed by either attribute specifications, ">" or "/>". Failed to compile stylesheet. 1 error detected. Looks like it can't be done. regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
|

Cart



