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

Re: Vocabulary Combination and optional namespaces


Re:  Vocabulary Combination and optional namespaces
james anderson <james.anderson@s...> wrote:
| Bill de hÓra wrote:


|> In a namespaced world, t[XML elements] are not [self-contained]:
|> 
|>   elementname, namespace, elementprefix 
| 
| the programming problem is an artifact of the misconception that names 
| in a namespaced world need be modeled at the application level as tuples.

True.  They would need to be modeled as objects (in languages without
support for symbols.) 

|> For a direct example of how the structural issues of using a tuple
|> affect code, see the SAX startElement call, and try operating on
|> various bits of markup with a handler. For anyone that has Dave
|> Brownell's SAX book, he has a good discussion on this. Or go through
|> the xml-dev archives..
| 
| in this regard, maybe one should consider whether the sax interface 
| and the sax processing model is all (or perhaps _is_) that one needs 
| for working with namespaces.

It's one where the app has to do all the work, mainly because the API
dribbles out namespaced names in their parts, not as wholes.  For
instance, where in SAX1 you get called with something on the order of

   startElement( String gi, Attributes atts )

in SAX2 this ought to have been an "equivalent"

   startElement( QName gi, Attributes atts )

But then, of course, there's the meta-question: why is such "abstraction"
necessary?


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.