Subject: Re: [xsl] use-when attribute? From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> Date: 17 Dec 2004 06:44:42 +0000 |
>>>>> "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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] use-when attribute?, Bruce D'Arcus | Thread | Re: [xsl] use-when attribute?, Bruce D'Arcus |
Re: [xsl] [XSLT2.0] xsl:analyze-str, Colin Paul Adams | Date | Re: [xsl] use-when attribute?, Colin Paul Adams |
Month |