John L. Clark wrote: > Other than a document hook extension, is there any way to instruct XXE > to "fill in" the DTD FIXED values for certain attributes when a document > is saved (that is, actually serialize those values)? For example, with > an element declaration such as the following: > > <!ELEMENT foo EMPTY> > <!ATTLIST foo att CDATA #FIXED 'bar'> > > I'd like documents to serialize <foo att='bar'/> instead of <foo/>.
There is no easy way to do this. You can do it by writing a document hook extension or by writing an implementation of the new (i.e. V3) OpenedDocumentHook interface (http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmleditapp/kit/OpenedDocumentHook.html). If what you want to do is specific to a given document type, writing a document hook extension is the right way to implement this. ---- PS: XXE has no hidden feature. If there was an easy way to specify this (e.g. a "save standalone document" option), it would have been documented.

