|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: use-when attribute?
>>>>> "Bruce" == Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> writes:
Bruce> I'm trying to understand the details of the use-when
Bruce> attribute in the latest XSLT 2.0 draft. Is the below a
Bruce> valid use?
Bruce> <xsl:import href="output-xhtml.xsl"
Bruce> use-when="$output-format='xhtml'"/>
No it's not. use-when is a stylesheet-compile-time mechanism, so you
cannot use the runtime value of a variable.
Since the static context for use-when states that there are
no in-scope variables, it will be a parse error.
You can try out use-when with gestalt (does alpha test 2 work on your stylesheets)?
--
Colin Paul Adams
Preston Lancashire
|
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
|

Cart








