OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Character classification

[ Lists Home | Date Index | Thread Index ]
  • From: Tim Bray <tbray@textuality.com>
  • To: xml-dev@ic.ac.uk
  • Date: Thu, 04 Sep 1997 08:30:34 -0700

At 04:54 PM 03/09/97 -0700, Chris Olds wrote:
> Is there any consensus on what form PCDATA or GI names
>should take when they are returned to the application?  On a related
>note, when do character entities get replaced - in the lexer or later
>on?  My reading of the draft is that the scanner must do the replacement
>if the examples of rescanning are to work.

Like Istvan says, Java chars and Strings.  However, you have to do 
lazy evaluation; if you foolishly make every little chunk of text you
read into a String, you'll spend all your time in the Java String class
implementation, and none doing useful work.

Character entitities have to be replaced in two places, when you find
them in an entity definition and when you find them in free text or
an attribute value. -T.

xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS