[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] use-when


Subject: Re: [xsl] use-when
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Mon, 20 Dec 2010 17:17:06 +0000

At 2010-12-10 01:43 +0200, Andriy Gerasika wrote:
I cannot figure out how to use use-when attribute, beyond standard
"system-property('file-separator')" example.

That is the only context of using it, as those are the only properties defined when the use-when= attributes are evaluated.


Have you tried setting your own Java system properties?


-Dorg.me.gerasika.prop=22 net.sf.saxon.Transform ....

<xsl:... use-when test="system-property('org.me.gerasika.prop')='22'">

Michael Kay
Saxonica


Current Thread