[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: dynamically set priority in xsl:template

Subject: Re: dynamically set priority in xsl:template
From: Georges Schmitz <georges.schmitz@xxxxxxxxx>
Date: Fri, 02 Mar 2007 11:52:57 +0100
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().

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.