|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: getting type information in xslt 2.0
On 10/24/06, David Carlisle <davidc@xxxxxxxxx> wrote:
Actually. it is quite clear. If a function has two arguments, the first an xs:date and the second an xs:integer, and the function that creates the partial application accepts one argument, it must accept only an xs:date -- not an argument of another type. Failing to do so will postpone the error message until "late-runtime" instead of compile time and this is too-much to lose. I will write more on this when I have more time -- in the meantime maybe both Colin and Florent could explain. The main thing is FXSL supports static type-checking of arguments (and function return types). A partial application is implemented as a structure (xml element) encoding the function with N arguments and k < N argument values. It may be interpreted (invoked) at any time in the future bu providing some or all of the remaining arguments. Any time a new argument value is provided, it must be of the type the original function accepts for this (Kth) argument -- this must be checked at the time this arg. value is provided -- not at the final when the original function is invoked with all N argument values. All this requires that a partial application knows the number and types of all the arguments of the original function. -- Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence. --------------------------------------- To invent, you need a good imagination and a pile of junk ------------------------------------- You've achieved success in your field when you don't know whether what you're doing is work or play
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








