xsl-list
[Top] [All Lists]

Re: use-when attribute?

2004-12-16 23:44:42
"Bruce" == Bruce D'Arcus <bdarcus(_at_)myrealbox(_dot_)com> 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>