[
Lists Home |
Date Index |
Thread Index
]
- From: Joe Lapp <jlapp@webMethods.com>
- To: xml-dev@ic.ac.uk
- Date: Mon, 20 Dec 1999 13:25:43 -0500
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@webMethods.com http://www.webMethods.com
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@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@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
|