A user of the custom configuration I've developed asked if there was a 
way to automatically change broken links.  In his case, he had about 20 
elements with an IDREF attribute referring to one element containing an 
ID.  When he changed the ID of that one element, the IDREF links were 
broken (of course).  While it is definitely nice that the Validity Tool 
showed him all 20 places, he still had to go and fix them one-by-one by 
hand.

So, we're wondering if there is a way now to have XXE fix such broken 
links automatically.  If not, would it be possible to make XXE do 
something like the following?

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.

Such a capability would make the user's experience with XXE even better 
than it is now.

Thanks,

--Andy

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

Reply via email to