[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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! 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
|