On 1 Jul 2003 at 9:19, Orson Davis wrote: > The stylesheet must be available before the pipeline is setup. The > setup, configure and compose methods for each component in a pipeline > is called before the startdocument method is called. In the case of > the org.apache.cocoon.transformation.TraxTransformer the call to the > stylesheet is made in before any XML gets generated from the generate > portion of the pipeline. > > The only way I can think to work around this is to write your own > version of the org.apache.cocoon.transformation.TraxTransformer such > that the getTransformerHandler(inputSource) is called from the > startDocument. I modified the TraxTransformer in such a way for my > application. It could probably be easily modified to meet your needs. > > If anyone knows a more graceful way to do this, please let me know.
Hmm. Seems rather complicated. Doesn't the stuff on this wiki page work for you: http://wiki.cocoondev.org/Wiki.jsp?page=MetaStylesheets What you say may be correct, but the xsl for the TraxTransformer can be initialized from another pipeline before the main pipeline is fully set up. Surely? (Sorry about last message - accidentally sent message before I'd finished writing it!) Regards, Upayavira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]