[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

Simon St.Laurent wrote:
>
> At 02:44 PM 5/29/2003 -0700, Joe English wrote:
> >[...] the nice simple data model of elements, attributes,
> >and text turns into a vastly more complicated data model, where
> >names are <namespace-name,local-name> pairs -- or even worse,
> ><namespace-name,namespace-prefix,local-name> triplets -- instead
> >of atomic strings, and you have to keep track of the namespace
> >environment to serialize or deserialize anything.
>
> There are people who argue that you could just borrow someone else's pain
> and use an off-the-shelf parser with a standard API,

But _are_ there any toolkits that handle namespaces sanely?
I haven't found any yet.  (SXML comes pretty close though).


> but that doesn't
> always work for my tasks - too much gets lost along the way.  Fortunately
> I've now written stacks for handling namespace declarations (and scoped
> attribute values), so the worst of the pain is over, but the smaller
> symptoms linger.

The initial namespace processing seems like the easy part
to me.  It's working with the output of that process that
I find painful, for exactly the reasons listed below:

> It seems like namespaces aimed at diambiguation with the "let's create big
> long names" approach, and then had to abbreviate the big long names to keep
> the language usable.  Since then, we've had datamodels that are big (pairs
> and triples), complex (scoped), and infectious (QNames in attribute and
> element values).

Another model is to just use the big long names; that's
what JDOM and SXML do.  This isn't any more appealing
to me than pairs or triples, though, and the scoping
problems remain.


--Joe English

  jenglish@f...

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.