[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: dynamically set priority in xsl:template
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().
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|