The two examples are functionally equivalent.   Both pipelines would
error without the pattern="tentative" match: the former because no
pipeline match is found and the latter because no Serializer is
called.  The map:match element is irrelevant because the match must be
assumed and no numbered parameters are being set.

This would be fine as the "concerned extract":
        <map:pipeline>
            <map:generate type="stream">
                <map:parameter name="defaultContentType" value="text/xml"/>
            </map:generate>
            <map:transform type="testTransformer" />
            <map:serialize type="xml"/>
        </map:pipeline>

We should assume the match is for code outside the current concern and
remained because the OP forgot to remove it as irrelevant.  The
"mistake" was providing too much code.

solprovider


On 11/16/07, warrell harries <[EMAIL PROTECTED]> wrote:
> Surely some mistake (probably a typo) but your pipeline should be :-
> <map:pipeline>
> <map:match pattern="tentative">
>    <map:generate type="stream">
>        <map:parameter name="defaultContentType" value="text/xml"/>
>      </map:generate>
>     <map:transform type="testTransformer" />
>     <map:serialize type="xml"/>
>  </map:match>
> </map:pipeline>
>
> On 16/11/2007, Jean-Claude Vogel <[EMAIL PROTECTED] > wrote:
> > Here is the concerned extract of my sitemap :
> >         <map:pipeline>
> >             <map:generate type="stream">
> >                 <map:parameter name="defaultContentType"
> value="text/xml"/>
> >             </map:generate>
> >             <map:match pattern="tentative">
> >                 <map:transform type="testTransformer" />
> >                 <map:serialize type="xml"/>
> >             </map:match>
> >         </map:pipeline>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to