xsl-list
[Top] [All Lists]

RE: Re: [exslt] Re: [xsl] Importing compiled stylesheets

2005-06-30 15:46:13
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:jim(_dot_)fuller(_at_)ruminate(_dot_)co(_dot_)uk] 
Sent: 30 June 2005 10:05
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc: ElektonikaMail(_at_)dollar(_dot_)fourthought(_dot_)com; 
exslt(_at_)lists(_dot_)fourthought(_dot_)com
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:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





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