My application
invloves a seriaes of transformations which allow us to separate the logic from
the content. One of these transformations involves substituting brand-specific
content. The input is a DOM Document; the result is supplied to an XSL
Transformation. What I want is to subclass the XMLSerializer in order to
dynamically substitute content for specific elements as a SAX stream, but the
Xerces XMLSerializer is final, and (apparently) cannot be fitted with a content
handler.
Can anyone suggest
what I should be doing here?