[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|