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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] char ref question

[ Lists Home | Date Index | Thread Index ]

Manos Batsis wrote:

> Hi list,
>
> Short version: Must character references in attribute values get 
> expanded by an XML parser?
>
> Long version: When a document like
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <foo bar="&#955;"/>
>
>
> is accessed by an API like SAX on top of an XML parser like piccolo 
> must the exposed attribute value be "&#955;" or "&lgr;" (greek lambda)?

You could conceivably have a partial parser that does not expand
character references. But then you would have two kinds of strings
floating around, which could cause confusion. I guess it would
be useful if
 * you wanted to stick to ASCII or 8859-1 enocded strings
 * you were just shovelling characters from input to output
 as fast as possible and you weren't interested in looking at
the contents at all.

There are lots of kinds of partial or lazy parsing possible...

Cheers
Rick Jelliffe






 

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

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