OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] limits of the generic

[ Lists Home | Date Index | Thread Index ]

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/





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS