Re: XML Redux
Original Message From: "Dave Pawson" > Semantics? > > Its a number... as apposed to a string? > The sender recipient should understand it as 32 somethings, > the app only knows it can treat it as a number? But is that level of semantics helpful to a computer? I'm not sure that knowing that something is 32 the number, rather than "32" the string would help me much with all the semantic inferencing I can do as a human. I would have thought its even less useful to a computer! Here's a test: 12^^int :-) Pete Cordell Codalogic Ltd Interface XML to C++ the easy way using C++ XML data binding to convert XSD schemas to C++ classes. Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com for more info ----- Original Message ----- From: "Dave Pawson" <email@example.com> To: <firstname.lastname@example.org> Sent: Thursday, February 17, 2011 10:47 AM Subject: Re: XML Redux > > On Thu, 17 Feb 2011 10:00:41 -0000 > "Pete Cordell" <email@example.com> wrote: > >> Original Message From: "John Cowan" >> >> > I'd add ... and the ability to add XSD simple >> > type names (prepended with "^^") and language tags (prepended with >> > "@") to a JSON literal in either order. N3 allows this on string >> > literals only, but 32^^integer seems better to me than >> > "32"^^integer. >> >> One thing I'm not clear on is, what value is there in knowing that, >> say, 32 is a float, if you don't know that that particular float >> represents, for example, the length of a box? Surely it's not >> sufficicient to just know the type of something. You also have to >> know what to do with it for it to be useful. And if you know what to >> do with it, you implicitly know its type so it doesn't need to be >> explicitly stated. >> >> What am I missing? > > Semantics? > > Its a number... as apposed to a string? > The sender recipient should understand it as 32 somethings, > the app only knows it can treat it as a number? > > > > > -- > > regards > > -- > Dave Pawson > XSLT XSL-FO FAQ. > http://www.dpawson.co.uk > > _______________________________________________________________________ > > XML-DEV is a publicly archived, unmoderated list hosted by OASIS > to support XML implementation and development. To minimize > spam in the archives, you must subscribe before posting. > > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ > Or unsubscribe: firstname.lastname@example.org > subscribe: email@example.com > List archive: http://lists.xml.org/archives/xml-dev/ > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
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