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

Re: The per-element-type namespace partition

  • From: Joe Lapp <jlapp@w...>
  • To: xml-dev@i...
  • Date: Mon, 20 Dec 1999 13:25:43 -0500

Re: The per-element-type namespace partition
At 10:05 AM 12/20/99 -0800, Tim Bray wrote:
>[...] I'm unconvinced that you have a problem.
>If you're going to extract an attribute from a doc and do things
>with it, you probably want to remember what element type it came
>from anyhow.  [...]

Here's a use case.  Assume for purposes of this discussion that both attributes and elements are nodes (among other kinds of nodes).  I want an API that inputs a node that represents a date and outputs the date in a standard format.  To identify the format of the input node, assuming that no crazy AI heuristics can be defined to do the job, the API must lookup the schema definition for this node.  The input node need not belong to any document at this point (eg. the document might not exist yet).

Unless I am missing something, to make this API work for attributes in the per-element-type namespace, I either have to expand my definition of node to include informational items 5 and 6 mentioned previously, or have the node take an additional parent node parameter.  Or I have to require that the node belong to a document -- but I also have use cases for why nodes should have to belong to documents.
--
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.