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

Re: Defining and operating on types (Was: Re: Wh

Subject: Re: Defining and operating on types (Was: Re: Why no namespace node KindTest?)
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Sun, 27 Aug 2006 23:06:55 +0200 (CEST)
Re:  Defining and operating on types (Was: Re:  Wh
Dimitre Novatchev wrote:

>   2. In the meantime of approximately 6 years or so, for
>      any generic-type function that might be interested in
>      manipulating the types of its arguments, one way to
>      pass both the argument and its type is using a tuple,
>      consisting of the constructor function for that type,
>      followed by the actual arguments to the constructor,
>      from which to instantiate the value of the argument.

  If we are speaking of XSLT 3.0, I'd see instead types as
first-class objects, and no need for a tuple, the type being
a property in the data model, accessible throught a function.

>      Passing a type-constructor as an argument is an
>      extremely powerful design pattern!

  For sure!

  But before that, I think nested sequences (or similar)
could be very useful.  That would permit to build libraries
that define their own structures and the functions to
manipulate them (so their own types and the API to
manipulate such black boxes).

  I wonder if this could be implemented as an extension,
something like EXSLT for XSLT 2.0, as it'd have a intimate
relation to the data model itself.

  Regards,

--drkm























	
 p5.vert.ukl.yahoo.com uncompressed/chunked Sun Aug 27 20:13:41 GMT 2006 
	
		
___________________________________________________________________________ 
Dicouvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! 
Yahoo! Questions/Riponses pour partager vos connaissances, vos opinions et vos expiriences. 
http://fr.answers.yahoo.com 

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.