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

Re: [Summary] XML is text-only ... why?

  • From: Philippe Poulard <philippe.poulard@s...>
  • To: "Costello, Roger L." <costello@m...>
  • Date: Fri, 28 Sep 2007 09:25:54 +0200

Re:  [Summary]  XML is text-only ... why?
Costello, Roger L. a écrit :
> Hi Philippe,
> 
> I enjoy reading your posts.  You provide lots of excellent information.

Thanks Roger

> 
> You have me stumped on this message (below), but I am intrigued.  Would
> you explain please?

An application such as XSLT that consider that the string "32" is in 
fact the integer 32 because it appears in a mathematical operation "32 + 
$foo" for example applies some convention to get an integer from a 
sequence of digits.

Another application could apply some other (very silly, I do admit) 
convention to consider that the character inside "<x> </x>" would be 
convert to an integer from the unicode code point of that character ; 
space => 32 ; it's a very stupid convention, as XML doesn't allow 
characters < 32 (except tab, cr, lf) ; perhaps with XML 1.1 ?

The fact that "32" will be understand as an integer or as a string 
depends just on the application that will process it ; at the XML level, 
it's text

> 
> /Roger 
> 
> -----Original Message-----
> From: Philippe Poulard [mailto:philippe.poulard@s...] 
> Sent: Thursday, September 27, 2007 11:56 AM
> To: Costello, Roger L.
> Cc: xml-dev@l...
> Subject: Re:  [Summary] XML is text-only ... why?
> 
> Costello, Roger L. a écrit :
>> Hi Folks,
>>
>> Thank you very much for your excellent comments!  I learned a lot! 
>>
>> I incorporated your comments (or, what I interpreted to be the
> essence
>> of your comments):
>>
>> http://www.xfront.com/xml-is-text/
>>
>> Please let me know of any inaccuracies or confusing parts.
>>
>> /Roger 
>>
> 
> Consider this last document :
> <?xml version="1.0"?>
> <x> </x>
> Does it contain a space inside the x element ? Not at all, it contains 
> the integer 32
> 
> I let you write the end of the story :)
> 


-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !


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