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

Entities - dec, hex, or both?

  • From: rev-bob@g...
  • To: xml-dev@i...
  • Date: 28 Nov 99 10:15:29 -0500

dec hex
> ** Original Subject: RE: RE: RE: Why no ']]>' in CharData?
> ** Original Sender: "Don Park" <donpark@d...>
>
> >I've got a lot of decimal-based entities in my code; what is 
> >your compelling reason for making me convert all of them to
> >hex in the name of a *Simple* Markup Language?  Conversely,
> >maybe Joe over there uses a lot of hex-based Unicode entities;
> >why should he have to go in and convert 'em to decimal?
> 
> That is a compelling reason except SML, as it is now, requires
> at least some conversion/checking to make sure XML documents
> conforms to SML.  So there is no extra cost for converting
> everything to hex.

For everything that needs to be converted, there is an extra cost attached - either in time 
or money, even both.  Would you argue that all data should be stored as entities because 
"well, you're going to have to convert some stuff anyway"?

> Can you think of any other compelling reasons?  I am genuinely
> interested.

Consider this for a minute.  Supporting hex and decimal numeric entities requires a tiny 
module in the parser, and no added work for the poor schmuck who has to actually 
convert the documents.  OTOH, choosing between hex and decimal saves only a few 
bytes of code in the parser while piling more work on said schmuck.

Which makes more sense - fix it once (in the parser) or fix it millions of times (in 
conversion)?  I say, fix it once - by allowing the full range of numeric bases currently 
allowed in XML and HTML.  Support is trivial, nonsupport is extremely nontrivial - so 
go with support.

(With that said, does anyone actually use octal representations for entities?  I seem to 
recall that it's allowed, but I've never seen it used.)



 Rev. Robert L. Hood  | http://rev-bob.gotc.com/
  Get Off The Cross!  | http://www.gotc.com/

Download NeoPlanet at http://www.neoplanet.com


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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.