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

The per-element-type namespace partition

  • From: Joe Lapp <jlapp@w...>
  • To: xml-dev@i...
  • Date: Mon, 20 Dec 1999 12:16:33 -0500

type of partition
I spend a lot of time creating specialized tool APIs on top of our XML parser.  This often involves taking a piece of information out of a document and running with it.  For the most part I can represent any piece with just the following:

- type of piece (eg. element, attribute, PI, comment, text, etc.)
- namespace URI (when applicable)
- local name or PI target name (when applicable)
- text (when applicable)

It seems that the following additional pieces are needed to represent attribute belonging to the per-element-type namespace partition:

- namespace URI of the associated element type
- local name of the associated element type

Since an attribute of this partition has only one associated namespace URI, you could replace the second occurrence of a namespace URI with a flag indicating that the first namespace URI actually applies to the element type local name.

Four pieces of information is already more complex than I desire.  Six pieces of information is really really distressing.  I have to find ways to keep this complexity out of my tool APIs and am looking for suggestions.

Are there any applications out there that require per-element-type namespace information?  What will I break if I effectively lump all per-element-type attributes into a single universal "default" namespace and require applications that need this information to retain information about the elements to which such attributes belong?  Why didn't the W3C just allow an unqualified attribute to assume the namespace of its owning element?  And what am I to infer from the fact that the "per-element-type partition" is defined in a "non-normative" section of the Namespaces in XML specification?

Thanks in advance for you help!
--
Joe Lapp              (Looking for some good people to help design
Principal Architect    and build the Internet's business-to-business
webMethods, Inc.       XML infrastructure.  We are 100% Java.)
jlapp@w...           http://www.webMethods.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.