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

RE: XSL variable types

Subject: RE: XSL variable types
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 23 Aug 1999 11:41:03 +0100
xsl variable type
> From: Jon Smirl [mailto:jonsmirl@xxxxxxxxxxxx]
> Sent: 12 August 1999 18:54
> To: XSLList
> 
> The XSL spec talks about five data types:
>     string, number, boolean, node-set, result-tree
> 
> XT allows me to set variables to Java objects (ObjectVariant) 
> and I'd like to modify Saxon to support this as well.  Should there be a 
> documented sixth data type of 'opaque' which is only used for passing
things between
> extension functions? It would be defined as error if used in 
> any other way.
> 

Actually XPath specifies four explicit data types (string, number, boolean,
node-set) and allows "other", while XSLT provides result-tree as an example
of "other". This leads to some interesting complications, e.g. the semantics
of comparing a node-set to a result-tree are undefined.

I'll have a look at allowing general objects as parameters to SAXON
extension functions. Really I'd prefer it (and I'm sure users would!) if the
standard defined a Java interface to extension functions. I'm not totally
happy with xt's introspective approach, for example it doesn't leave room
for requiring an extension function to declare whether or not it has
side-effects.

Mike Kay 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.