I maintain XSLTXT which is a compact form for encoding xslt stylesheets
(http://www.zanthan.com/ajm/xsltxt/). I want to extend the ant "style"
task so that it can use stylesheets encoded in xsltxt. The easiest way
for me to do this is to override and extend TraXLiaison and use the
processor attribute on the style task to point to my extended class.
However, I can currently do this as the fucntionality I need is embedded
in private methods. The attached patch adds two new methods
getXSLTXTSource, that returns the Source for the stylesheet, and
makeFactory, that constructs the TransformerFactory. I've run the
appropriate tests and they all pass.
Hopefully this patch is suitable for inclusion in the ant sources.
Thanks
Alex
|