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

Re: Blueberry is not "closed" (was: Closing Blueberry)

  • From: Elliotte Rusty Harold <elharo@m...>
  • To: xml-dev@l..., www-xml-blueberry-comments@w...
  • Date: Mon, 23 Jul 2001 08:47:49 -0400

blueberry
At 4:17 PM +0800 7/23/01, Rick Jelliffe wrote:


>That would be cumbersome in the case of streaming processes,
>and would require an extended DOM for in-memory.  For
>example, the DOM would require two-passes to serialize
>(one to see if Bluberry is used, to set the header, and
>one to do the output) for some implementations.
>

That would be a naive approach. DOM could easily be implemented so this was not an issue. For example, give every element, attribute, and processing instruction a boolean usesBlueberry flag. Then have the document keep a reference count of the number of Blueberry items in the document that could be incremented and decremented as nodes were added to the document. 

>Do Blueberry documents require a Blueberry DOM and
>Blueberry SAX handler?  (I.e., ones which ascertain what
>features are used.
>

Even without this, I think Blueberry documents require a Blueberry DOM. They'll need to use a different group of legal character tables for Blueberry and non-Blueberry documents. (though I admit one thing that really hasn't been addressed at all yet is the changes Blueberry will require in other specs like XPath, DOM, Schemas, etc.) 

Furthermore, I certainly want to avoid a pure Blueberry DOM that would assume all documents are Blueberry unless told otherwise. This would almost immediately lead to the proliferation of unnecessary Blueberry declarations in the wild that I'm trying so hard to avoid. 

I don't think the SAX API needs to change at all. However, the parsers do, but they already need to. XML 1.0 parsers cannot handle Blueberry. All my proposal does is add one more well-formedness constraint for Blueberry documents that a parser must check and report through the normal SAX mechanisms. 

-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+ 
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|              http://www.ibiblio.org/xml/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      | 
|  Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/     |
+----------------------------------+---------------------------------+

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.