On Fri, 25 Jun 2010 11:08:15 -0700, Andy Black <[email protected]> wrote:
> Any time an ID attribute gets changed, remember the value before the 
> change.  Based on the DTD/schema, find all elements containing an 
> IDREF/IDREFS attribute whose value was/contains the value before the 
> change.  Then change the value of the IDREF/IDREFS attribute in those 
> elements to the new value.

One complication in this would be multi-part documents, e.g. books
containing multiple chapters, where the chapters are contained in separate
files (some of which might be open by other users, and therefore locked to
edits).  Even finding all the other chapters might be hard, unless the
system knew where the book-level file was (which would presumably xinclude
the chapters), so it could find where all the chapters are supposed to be.

   Mike Maxwell
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to