Re: [xsl] getting type information in xslt 2.0

Subject: Re: [xsl] getting type information in xslt 2.0
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 24 Oct 2006 09:14:06 +0100
> Very briefly, all the functions in your example are typeless.

Not sure what you mean by typeless in this context?

The actual examples certainly have holes in them, it was just some very
late night doodling in response to you "how" question:-) But I'm not
sure that you ever _have_ to save data in xslt2 as element content do
you (which is I think where you are losing type information) unless you
need to serialise to an XML output. If you can hold the data in memory
as XPath sequences, you should be able to retain type information?

Oh do you mean you need to define separate functions for separate types
rather than rely, as I did, on the inbuilt polymorphism of the build in
F&O functions and operators? In that case yes you do need to get type
information but in that case it's not to do with the requirments of
partial function application, just getting round the limitation that
XPath2 signatures for user-functions have to be distinguished by arity
not type.


Current Thread