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

Re: use-when attribute?

Subject: Re: use-when attribute?
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 17 Dec 2004 06:44:42 +0000
xslt use when
>>>>> "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

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-2013 All Rights Reserved.