[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [sdo] [NEW ISSUE]: Remove the {property '.' index_from_0} from sdoxpath syntax
Hi James, Java uses 0-based indexing as well, but the issue here has more to do with XPath compatibility than language binding - since the syntax of SDOPath was supposed to be an XPath subset but the .0 format is the one exception. Even if you don't use it, it causes problems with properties that include the "." character in their names. Your comment about it being a breaking change, however, is a valid concern. Frank "James Hart" <James.Hart@roguewave.com> 01/24/2008 12:41 PM To "Yang,Hongbo" <yanghb@primeton.com>, <sdo@lists.oasis-open.org> cc Subject RE: [sdo] [NEW ISSUE]: Remove the {property '.' index_from_0} from sdo xpath syntax From a C++ point of view where all arrays are indexed with 0 it is more intuitive for some of our customer base to use the .0 syntax. It makes using the data object more intuitive for people who have mainly used 0 based indexing in the past. You don?t have to use the .0 base indexing if you want to just use [1]. Removing it from the specs first forces everyone to do it one way that might not be familiar or intuitive for them. Secondly, it would be breaking usage for people who are use to SDO that have always used the .0 syntax and migration could be a real pain. I brought this next point up briefly in the F2F, but I think it relates to this issue too. Things that make the SDO language specific seem like a bad idea to include in the SDO spec. Since different languages use 0 base indexing vs. 1 base indexing it seems pretty great to have the spec include both ways as convince since I would say most programmers are from a 0 based indexed system yet a 1 based index system is used in several systems as well. Thanks, James From: Yang,Hongbo [mailto:yanghb@primeton.com] Sent: Thursday, January 24, 2008 1:27 AM To: sdo@lists.oasis-open.org Subject: [sdo] [NEW ISSUE]: Remove the {property '.' index_from_0} from sdo xpath syntax Hi all, In SDO2.1 ,there is both | property '.' index_from_0 and | property '[' index_from_1 ']' in syntax of xpath. It has two defects : firstly,index_from_0 is not subset of xpath as described in SDO 2.1 secondly, '.' is not conveniently to combime with OGNL or web FrameWork. So i suggest to remove the '.' index_from_0 from SDO in 3.0 Thanks, Hongbo
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]