I have the following use case : I have an application that adds custom menus and actions to openoffice writer - and lets the user mark up text fragments on a standard openoffice document.
The ODF document subsequently undergoes transformation into an intermediary xml format (stage -1) - and this intermediary xml format is subsequently processed and transformed further into the final XML output. (stage -2) Usually there are transformation errors related to mistakes the user made while marking up the word processor document - these errors can come up either during stage-1 or stage-2. Currently the system returns an ugly saxon transform exception and exits. I want to be able to provide friendly and useful error messages to the user marking up the word processor document so it can be easy for him/her to correct the error in the document. (i.e. 'please mark up the title in section 32' instead of 'TransformerException ...' ) - I was thinking of having an error management layer that maps every saxon message to a corresponding friendly message and displaying the more meaningful error to the user editing the document in openoffice. Is there a better way of doing this ? any ideas / suggestions ? thanks Ashok --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
