cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: XML-Based Selection (Redirect Serializer?)
Date Wed, 27 Feb 2002 18:24:55 GMT
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.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------


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


Mime
View raw message