James Burton wrote: > > Hi all! We're working on a Cocoon 2 project and > *very* strongly need the ability to "branch" to a > different pipeline or part of a pipeline based on the > XML output of a Transformer. This is because we use a > custom Transformer for communicating with an EJB back > end. Originally I thought to use an XML selector like > this: > > <map:match pattern="example"> > <map:generate src="..." /> > <map:transform type="custom-ejb-interface"> > ... > </map:transform> > <map:select type="xml" node="/result/flag"> > <map:when test="normalResult"> > <map:transform src="styles/normal.xsl" /> > </map:when> > <map:when test="specialResult"> > <map:transform type="custom-ejb-interface"> > ... > </map:transform> > <map:transform src="styles/special.xsl" /> > </map:when> > </map:select> > <map:serialize /> > </map:match>
What about writing a custom selectors that connects to the EJB logic? will sure be faster and cleaner than to have to serialize things as SAX events, and have a selectors look into the pipe for that. -- Stefano Mazzocchi One must still have chaos in oneself to be able to give birth to a dancing star. <[EMAIL PROTECTED]> Friedrich Nietzsche -------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]