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

RE: bohemians, gentry


xpath losing leading zeros
> In theory Xpath1 processors can drop comments, but in 
> practice they don't. But Comments are inherantly second class 
> citizens anyway. 0's in character data are not (or were not 
> until recently) No Xpath processor is going to drop leading 
> zeros from source data. If I decide, in my query to use that 
> data as a number then obviously 01 = 1 but if I want to check 
> starts-with(.,'0' 
> then I know it will work.
> 
> If I switch to Xpath 2 (and it's a big if) then I no longer 
> get that assurance, only your "hope" that I'll find 
> processors that don't mess up my data.

OK, let's be clear. There are some big companies who think that it's a
good idea to store XML in relational databases. This means shredding
your document, turning it into tuples, and then putting it back together
again on retrieval. If you do this, you are going to lose fidelity. If
you're using XML to represent simple tabular data, you probably don't
care. If you're storing documents such as legal contracts, then you
almost certainly do.

There are other companies (like mine) who think that shredding your
document is a lousy idea and that users will prefer to buy XML databases
that don't do it.

The standards game is about identifying where we can achieve commonality
and where we agree to differ. If the spec gives options that reduce
interoperability, you can be pretty sure that's because the alternative
was to have no spec. In the end, the market will decide what the
requirements are, and they may well go beyond mere conformance with the
W3C spec.

Michael Kay
Software AG
home: Michael.H.Kay@n...
work: Michael.Kay@s... 


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.