Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Operating System: other
Platform: Other
-
39382
Description
This patch adds a very minimal and optional SAX pipeline to Digester, allowing
the user to inject XML transformations between the parser and Digester
processing. The original purpose is to make it possible to create a
LocationTransformer that injects the source, line number, and column number
pieces of information into every element through namespaced attributes, allowing
user to have digester create their own Location objects and use the information
for enhanced debugging.
Incidently, this transforming pipeline hook opens digester up for more
interesting features like supporting multiple xml formats simultaneously by
allowing the developer to create special transformers that trigger when an old
format is used, transforming into the latest one.