"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>
--~--