[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Re: [exslt] Re: Importing compiled styleshee

Subject: RE: Re: [exslt] Re: Importing compiled stylesheets
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 30 Jun 2005 23:46:13 +0100
RE:  Re: [exslt] Re:  Importing compiled styleshee
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.fuller@xxxxxxxxxxxxxx] 
> Sent: 30 June 2005 10:05
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Cc: ElektonikaMail@xxxxxxxxxxxxxxxxxxxxxx; exslt@xxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Re: [exslt] Re:  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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.