thanks so much for explaining! I had not understood that the serialise would always 
terminate the sitemap processing.

At 9:49 AM -0400 30/7/02, Vadim Gritsenko wrote:
> > From: Jo Bourne [mailto:[EMAIL PROTECTED]]
>>
>> Hi Vadim,
>>
>> I am confused by your example, the way it reads to me the default xsl
>will
>> always run, even if the special one is detected and run first?
>
>You have not interpreted sitemap correctly.
>
>
>> ><map:match pattern="**.xml">
>> >  <map:generate src="{1}.xml"/>
>
>Add generator.
>
>> >  <!-- Here: "request" corresponds to RequestParameterMatcher -->
>
>Is "style" request parameter present?
>
>> >  <map:match type="request" pattern="style">
>
>Yes:
>
>> >    <map:transform src="{1}.xsl"/>
>
>Add transformer.
>
>> >    <map:serialize ... />
>
>Add serializer and **stop** sitemap processing.
>
>> >  </map:match>
>
>No:
>
>> >  <map:transform src="default.xsl"/>
>
>Add transformer.
>
>> >  <map:serialize ... />
>
>Add serializer and **stop** sitemap processing.
>
>> ></map:match>
>
>
>
>PS See lint.xmap, it will open your eyes.
>
>Vadim
>
>
>> thanks
>> Jo
>>
>> At 9:18 AM -0400 30/7/02, Vadim Gritsenko wrote:
>> > > From: Barbara Post [mailto:[EMAIL PROTECTED]]
>> >>
>> >> Hello,
>> >>
>> >> is this ok for your problem ? But if "style" is not specified this
>> >> wouldn't
>> >> be ok. So you would have to specify a default value anyway when
>> >> submitting...
>> >
>> >Edited version:
>> >
>> ><map:match pattern="**.xml">
>> >  <map:generate src="{1}.xml"/>
>> >
>> >  <!-- Here: "request" corresponds to RequestParameterMatcher -->
>> >  <map:match type="request" pattern="style">
>> >    <map:transform src="{1}.xsl"/>
>> >    <map:serialize ... />
>> >  </map:match>
>> >
>> >  <map:transform src="default.xsl"/>
>> >  <map:serialize ... />
>> ></map:match>
>> >
>> >Vadim
>> >
>...
>
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in the
>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
>For additional commands, e-mail:   <[EMAIL PROTECTED]>


-- 
Jo Bourne
Virtual Artists Pty Ltd

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to