RE: Re: [exslt] Re: [xsl] Importing compiled stylesheets
"Michael Kay" <[email protected]>
| Newsgroups | gmane.text.xml.xsl.general.mulberrytech,gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
Partly true. The use-when expression is evaluated at compile time. The use-when expression can invoke the element-available() function. When the element-available() function is called in the use-when expression then it is evaluated at compile time. If element-available() is called in other expressions then it is (conceptually) evaluated at run-time. However, in all cases except pathological test cases invented by malicious QA people, the argument to element-available() is a string literal, which means the result of the expression is known statically. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: James Fuller [mailto:[email protected]] > Sent: 30 June 2005 10:05 > To: [email protected] > Cc: [email protected]; [email protected] > Subject: Re: [xsl] Re: [exslt] Re: [xsl] Importing compiled > stylesheets > > Colin Paul Adams wrote: > > >>>>>>Mike, what you say is true, but is not relevant to the case. > >>>>>>xsl:use-when IS a compile-time construction - it runs > at compile-time, > >>>>>>not at run-time. > >>>>>>and the condiotion is not a runt-ime condition - > element-available > >>>>>>evaluates, AT COMPILE TIME, whether or not the instruction is > >>>>>>available. > >>>>>> > >>>>>> > > being very lazy at the moment, > > is this behavior what the spec explicitly states or is it > implementator > intepretation...also is it consistent between XSLT 1.0 and XSLT 2.0 ? > > cheers, Jim Fuller > > > --~------------------------------------------------------------------ > 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:[email protected]> > --~-- > > --~------------------------------------------------------------------ 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:[email protected]> --~--