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

Re: limits of the generic


Re:  limits of the generic
Hi Uche,

>> Oh, I've just realised that I'm making the assumption that the
>> XPath 2.0 data model would be used for this -- that values would be
>> "labelled" with their type, such that when I pass around $num1 it
>> is a value labelled as being an xs:decimal rather than being
>> natively a string or a number and being converted to a particular
>> type when a particular function has to be carried out on it. Do you
>> think that's a bad idea?
>
> From an implementor's POV, it makes dealing with variables in XPath
> a royal pain. And Python is even more flexible in these matters than
> Java. I do think that certainly it is an idea that should give great
> pause, and my initial reaction is quite negative.

Would you mind taking some time to expand on this a bit more? Saying
that values are "a string with a data type as a label" is quite
fundamental in the current design of XPath 2.0, so if there are big
implementation problems with that, we need to address them. Plus, I'm
interested in pursuing this "fantasy XPath" idea, and again how values
are represented would have a major effect on whether the ideas we're
talking about in terms of data type libraries are at all realistic.

Thanks,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.