Jed Parsons wrote: > > Actually, I want to set this attribute differently in each instance > using an external application, and then prevent someone using xxe (or > other editor) from changing it. > > In this specific case, once a document has been written, I have a > program that assigns to each section an id number that is unique > across all my documents. I use this id label for constructing a > master index. Once the id is assigned, I don't want a later editor to > be able to change it accidentally. > > I don't think I can use #FIXED attributes for this (since they have a > single default value). Maybe I'll just have to make sure my users > behave themselves around my id tags. Or maybe I should be going about > my indexing differently...
Why not use a child element of the section containing its ID as an attribute? If you give this child element a "display: none;" property in the CSS stylesheet, your users will not be able to see it in XXE and therefore to edit it (unless they switch to the tree view).

