Tuesday September 14, 2004 |
Isopaleocopria
Gregory Murphy's Blogorrhea |
|
|
TRAX: Passing parameters to a "pull" transformer The TRAX API for performing XSL transformations includes a factory extension, Unfortunately, returning the transformer as a class that implements only XMLFilter effectively
hides the methods defined by I think a better solution would have been to return an interface that extends both XMLFilter and Transformer, allowing the caller to set up the filter chain, and then pass parameters to some or all of the filters before processing. This is one of the things that I liked about James Clark's XT: his XSLProcessor class extended XMLParser (the SAX 1.0 predecessor of XMLReader), so they could be made easily into filters. Of course, having to wrap processors in XMLReaderAdapators (to allow the SAX 1.0 parser to read from a SAX 2.0 reader) makes for its own headaches. (2004-09-14 17:29:06.0) Permalink Comments:
Post a Comment: Comments are closed for this entry. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||