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

Re: Future XSLT expansion.

Subject: Re: Future XSLT expansion.
From: Paul Tchistopolskii <paul@xxxxxxx>
Date: Mon, 20 Mar 2000 10:20:46 -0800
typecasting extensions

 
> > Having node-set typecast in the core allows writing 
> > XSLT-vendor-independent extensions. 
> 
> I can't see any use for a node-set typecast within xslt, except
> for the one special case of result-tree to node set.
> 
> Extension functions may return node-sets, if they return some other
> vendor-specific datatype, how would casting to node-set work?

Extension functions may return node-sets.
But the 'node-sets'  they are returning ( and RTFs also ) 
are vendor specific.

You can not write the Java function, returning node-set
and then just use that function with any engine.

> in general it is not at all clear what the conversion `should' be

Convert anything to node-set. 'Anything' could be RTF or simply 
text ( String ). If conversion could not be done - fire the exception.
This allows writing Java function returning String - and then 
typecasting the String into node-set not on the level of extension, 
but on the level of XSLT core. That allows writing vendor-independent 
extensions. 

> and if you wanted a node set why not use an extension function
> that returns a node set rather than one that returns some private
> datatype that needs to be coerced to a node set.

Because node set  *is*  'some private datatype'.
 
Rgds.Paul.



 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.