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

Re: SML: The size of the processor is not the issue

  • From: David Megginson <david@m...>
  • To: xml-dev@i...
  • Date: 18 Nov 1999 06:31:58 -0500

size of a processor
Sean Mc Grath <digitome@i...> writes:

> It is in this space, transforming XML to XML, that the cost
> of all XML 1.0 features are paid. Take the most trivial XML
> to XML transformation -- the null transformation. Think about
> how hard it is do this for arbirtary XML 1.0 documents.

That's simply a problem of underspecification: XML 1.0 provides a
syntax, but for the most part, it doesn't say what in that in that
syntax is signal (such as character data) and what is noise (such as
whitespace in a start tag).

APIs defacto make the signal/noise distinction for you.  If you're
accessing an XML document through SAX, all you have to worry about in
the transform is the following:

1. notation decls
2. unparsed entity decls
3. elements
4. attributes and their values
5. character data
6. whitespace in element content (which you can treat as character
   data)
7. processing instructions

That's pretty good, really.  Writing an identity transform with SAX in
Java takes only a few screens of code and can be managed in 15 minutes 
by any competent, intermediate-level programmer who knows the domain
(a good coder can do it in 5).

On a more formal level, the Infoset goes to great care to make the
signal/noise distinction that's missing from XML 1.0, and Canonical
XML builds further on the Infoset.


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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.