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

Re: Infinity

  • From: Elliotte Rusty Harold <elharo@ibiblio.org>
  • To: Michael Kay <mike@saxonica.com>
  • Date: Sat, 3 Mar 2018 05:56:33 -0500

Re:  Infinity
Yes, the spec is correct on this point. Every integer has a finite
length representation. The infinite part refers to the number of
integers, not the length of each integer's string representation.

Now because it's infinite, there is no longest string. Given any
string you claim is the longest, I add one more digit and thus have a
longer string. Therefore there can be no longest string.

I suspect the "finite length" verbiage is there to prevent someone
from feeding a parser an unending stream of digits. It's not
mathematically necessary.


On Sat, Mar 3, 2018 at 4:22 AM, Michael Kay <mike@saxonica.com> wrote:
> A question of no practical relevance for those on the list who are more
> mathematically inclined than I am.
>
> From XSD 1.1 part 2 §3.3.13
>
> (a) The ·value space· of integer is the infinite set {...,-2,-1,0,1,2,...}.
>
> (b) integer has a lexical representation consisting of a finite-length
> sequence of decimal digits (#x30-#x39) with an optional leading sign.
>
> So the value space is infinite, but the lexical space is finite. Or is it?
> Perhaps the set of finite-length strings is itself infinite?
>
> Does every integer in this infinite set have a finite-length lexical
> representation? Or are there integers in the value space that have no
> representation in the lexical space?
>
> Whenever I read this, I think, why is that adjective "finite-length" there?
> Would I have to change my software if it were removed?
>
> Michael Kay
> Saxonica
>
>



-- 
Elliotte Rusty Harold
elharo@ibiblio.org

  • Follow-Ups:
    • Re: Infinity
      • From: C. M. Sperberg-McQueen <cmsmcq@blackmesatech.com>
    • Re: Infinity
      • From: "Norman Gray" <norman@astro.gla.ac.uk>
  • References:
    • Infinity
      • From: Michael Kay <mike@saxonica.com>

[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!

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.