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] XML's Scylla and Charybdis - parse and regexp

[ Lists Home | Date Index | Thread Index ]

Jonathan Robie wrote,
> Is faithful lexical round-tripping an important goal? If so, why?

It's important to any application which is sensitive to the lexical 
characteristics of XML documents. They exist. If they're not yours then 
you don't have to care.

> If the Information Set says that there is no distinction between <foo
> "a"/> and <foo 'a'/>, why should I work hard to preserve the
> distinction?

If all you care about is the Infoset then you don't. But the XML REC 
does differentiate between the two at the lexical level, and some 
applications care about that.

That said, the API I mentioned predated both SAX2's LexicalHandler (and 
the Infoset REC), and the primary motivation was preserving comments 
rather than quotemarks ... in particular I wanted to be able to 
round-trip without dropping comments with, eg., embedded copyright 
information.

Cheers,


Miles




 

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

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