cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Orson Davis <ODa...@planetsalvage.com>
Subject RE: Howto use a generated stylesheet
Date Tue, 01 Jul 2003 14:25:11 GMT
Sadly, for my application no.  I am breaking all the rules and having the
xml determine which stylesheet I want to use. :-(  It is a legacy app and
that was the easiest way to update it from cocoon 1.8.1 to cocoon 2.0.4

-----Original Message-----
From: Upayavira [mailto:uv@upaya.co.uk]
Sent: Tuesday, July 01, 2003 9:23 AM
To: cocoon-users@xml.apache.org
Subject: RE: Howto use a generated stylesheet


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:



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message