OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: DOM and editing [was WISH!...]

[ Lists Home | Date Index | Thread Index ]
  • From: "Lauren Wood" <lauren@sqwest.bc.ca>
  • To: xml-dev@ic.ac.uk
  • Date: Thu, 6 Jan 2000 12:18:50 -0800

On 7 Jan 00, at 12:08, Peter Murray-Rust wrote:

> I am indeed doing this! I have specified and implemented a first pass at
> CMLDOM using DOM-1. I ran into a number of problems when building/editing
> the DOM. I have been using two implementations, xml-tr2 from SUN and xml4j
> (now Xerces). Each of these had extended the DOM interface with methods
> such as
> setTagName() and
> setOwnerDocument()
> which I found to be essential for editing. In doing so the 2
> implementations diverged and I could not easily extend one without losing
> the ability to switch to the other if necessary. (I appreciate that this is
> one of the problems that SAXON tackled). I therefore did not have an
> implementation of CMLDOM that could be switched from one implementation to
> the other. effectively this means that I would have to rewrite the
> interface for different editors

The theory is that the DOM will define basic functionality and leave 
the convenience functions to other modules (yes, I know we don't do 
DTDs yet, but that will be done in Level 3, which we're starting now). 
So if there are things you *really need*, please send a list of them 
to www-dom@w3.org. Especially if they're already in some existing 
DOM implementation. It's too late for Level 2, but we're busy writing 
requirements document for Level 3, so now is the right time to get 
them listed. If you can include a use case, that makes life much 
easier for everyone, of course.

> If these and related problems are solved in DOM2 I shall be delighted!
> DOM2, however, specifically suggests that the interface can be extended,
> and it is these extensions that I am afraid of. 

I don't think those functions are in DOM Level 2. As for the 
extensibility, the DOM has always said that implementations can 
add their own functionality, so there's nothing new there. The best 
solution is if DOM implementations come with documentation that 
clearly states which functions and methods are part of the W3C 
DOM specification, and which are proprietary.


Lauren

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)






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS