The per-element-type namespace partition
jlapp at webMethods.com
Mon Dec 20 18:24:33 GMT 1999
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 at webMethods.com http://www.webMethods.com
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev