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 de gregorio Licet in principio aliquot dicere de auctore, Gregorio. Natus sum xxvi augusti MCMLXV, novo eboraco. Titulum gradumque philosophiae doctoris in scientia linguarum romanicarum datum mihi ab praeses Universitatis Princetoniensis, anno domine MCMXCV. Hodie machinator, apud Heliomicrosystemata. Placet mihi saltare, libris colligere, coquere tam quam cenare. Et res latinas! (2004-09-14 11:52:52.0) Permalink Comments [2] |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||