I wasn't aware of use-when being evaluated at compile-time - I never
used it until now. The usage of system properties came never to my mind
before. I have to see how this would fit into the "ant" build process
that is calling the stylesheet.
Thanks,
Georges
Michael Kay wrote:
XSLT variables and parameters don't have a value until run-time, so you
can't refer to them in use-when. What you can do instead is to refer to Java
system properties
use-when="system-property('slenderise.level') = '1'"
which you can set from the command line using -Dslenderise.level=1 or from a
calling Java application using System.setProperty().
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--