I'm planning to implement the work-specific edits by applying XSLT rules to the document.
As an aside, XSLT (XML Stylesheet Language - Transformation) was intended to be a flexible language for transforming one XML document into another, and indeed it is. As with many good tools, XSLT has been used in innovative ways which were not forseen by the XSLT designers. One of these is for document verification - ie, the job of applying edit criteria to a document to check whether it conforms to some abstract model. The W3C, managers of the web/XML standardisation processes, have produced a standard for defining the definition of any particular XML document. This standard "XML Schema" has a long and controversial history. People want to be able to define lots of things which make a document "valid" on their context, and demand a lot from an XML Schema standard, which in turn makes it complicated, hard to understand and implement and maybe even hard to use. Well, Rick Jelliffe took a completely different approach to testing a document for validity. Rather than compare it with a declaration (the XML Schema approach), his Schematron uses the XSLT language to define a set of rules which are tested against an incoming document. Basically, it transforms the incoming document by using the rules to produce a report which describes whether or how well the incoming document matches the specification defined by the rules. The Schematron is a simple and brilliant idea. Some of the nice things about using XSLT to define the "validity" rules are: