Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - RE: [xsl] dynamically set priority in xsl:template [Thread Next] Re: [xsl] dynamically set priority in xsl:templateTo: Date: 3/2/2007 10:53:00 AM 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(). | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
