ben wrote:
> 
> is it possible to customize XXE so that:
> 
> 1. when a file is opened it calls a parsing script on the whole file,
> 2. it takes the result of the parsing script as its actual input xml
> file,
> 3. when the file is written it calls another script and write the result
> as the output file.
> 
> As you see, I want to make a systematic change on docs loaded by XXE,
> and reverse the process when saved; it would be great if it could be
> fully integrated in the tool.

Well, we have already thought about implementing this type of
customization.

It is called a documentHook and must be declared in a XXE configuration
file for a given document type.

Examples of uses:

* ``Semantic'' validation (validation using a DTD or XML-Schema is not
always sufficient even if the grammar is very well thought).

* In the case of DocBook, fixes the "cols" attribute of "tgroup" that
users seem to systematically forget to update.

This feature will be available in next release.

Reply via email to