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

RE: The subsetting has begun


j2me xhtml
At 9:22 AM -0600 2/21/03, Cavnar-Johnson, John wrote:
>I have followed the discussion on the TAG list and here, and I still
>fail to see what gets people upset about this.  This specification
>defines a particular application of XML and the style of document that
>that application uses. As long as it doesn't purport to define a
>generalized XML parser, why is it wrong? This application won't accept
>all well-formed XML documents, but so what? Must every application that
>uses XML accept any XML document?  That just doesn't make sense to me.
>What's the danger here?
>

It does purport to be a general XML processor for J2ME. It defines 
the Java API for XML Processing for J2ME. That's the problem. If they 
just called this a SOAP parser and never mentioned XML I probably 
wouldn't have a problem with it.

However, what they are doing, essentially says that you cannot ship a 
non-validating parser on J2ME that actually conforms to XML and SAX. 
They have redefined the behavior of SAX parsers in the J2ME 
environment. They use the same classes we use every day for XML 
processing (e.g. XMLReader and ContentHandler) but they make them 
work differently.

If this goes through in its current state, it makes it impossible to 
correctly process XML using the standard SAX API and a non-validating 
parser in J2ME. I agree that a parser in this environment probably 
won't want to validate. It may not want to resolve external entities. 
But it certainly should process the internal DTD subset and allow 
doctype declarations.

Here's one use-case: XHTML. Conformant XHTML *requires* a DOCTYPE 
declaration. It almost never requires actually reading the DTD or 
validating, and most browsers don't. As written, this spec cannot 
adequately support XHTML in the J2ME environment. A J2ME SAX parser 
will throw a SAXParseException on every conformant XHTML document, or 
it will perform a costly and unnecessary validation on every XHTML 
document.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|           Processing XML with Java (Addison-Wesley, 2002)          |
|              http://www.cafeconleche.org/books/xmljava             |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+

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.