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

Re: UTF-8+names


translate encoding
bob@o... (Bob Foster) writes:
>3. The proposal is certainly a pain for an editor provider. It
>effectively introduces an extra stage of processing in between b and c
>in a) detect encoding, b) translate encoding to Unicode, c) parse XML.
>An editor must make this extra stage an option. Many users will prefer
>not to do the latter translation, so they can see the "entities" as
>entities and edit them as such.

For me, there's an odd story here. The XML spec was written in such a
way that many (most) parsers didn't provide access to entity references,
especially when they appeared in inconvenient places like attribute
values.

To get around that, I first wrote a pre-processor that handled documents
as text and did entity work there.  Next, I wrote a parser and an API
that lets me get to entity references in particular contexts, so I could
(potentially) do things like process entity references in XHTML content
as XHTML, MathML as MathML, and Joe C. BlowML as Joe C. BlowML.

Now, entity references seem to be vanishing into the encoding.  If I
open these documents in their declared encoding, the parts on which I
wanted to work all vanish.  I guess I can still open them as plain
UTF-8, but now the entity references live in this murky state, neither
XML nor Unicode.

I certainly don't want to do the extra translation, even when 
"UTF-8+bogosity" is specified - that would void the whole point of the
work I was doing - but I'm not sure what state that leaves the
information I'm providing to developers.  Suddenly, tools I'd designed
to go beyond the requirements of simple compliance are now uncompliant,
sort of maybe possibly I can't really tell.

Yecch.  Good thing I'm working on my finish carpentry skills.


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.