[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
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
|
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
|