Hi, Thanks for reply...

No, I instead have mapped the following...
<map:selector name="request"
   src="org.apache.cocoon.selection.RequestSelector"/>

This works, because it picks up the parameter ok, and calls the right
stylesheet...

But, alas, the XML appears to be missing when it arrives (or so it
appears....)

Chris
-=-=-

-----Original Message-----
From: Jerzy Kut [mailto:[EMAIL PROTECTED]]
Sent: 08 April 2002 12:13
To: [EMAIL PROTECTED]
Subject: Re: Transformer Loses XML


Hi!
Have You got defined request selector as:

   <map:selector name="request"

src="org.apache.cocoon.selection.RequestParameterSelector"/>
in Your sitemap.xmap <map:selectors> section ???
Regards
Jerzy Kut

----- Original Message -----
From: "Shaw, Chris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 08, 2002 11:57 AM
Subject: Transformer Loses XML


> Hi,
>
> I have a generator that outputs XML.
> Then, depending upon a request parameter sent in (which specifies the
output
> format) I redirect to a Transformer.
>
> When the test condition is true (test=html) then the stylesheet doesn't
> work..it strips out all the XML and outputs all the data...ie the default
> action if the stylesheet doesn't match anything.
> When I put some test statements in it appears that the stylesheet doesn't
> get the document containing any of the XML tags!!!!!! it just gets the
> data....
>
> At the moment my "otherwise" statement intentionally does nothing, and so
I
> get to see the XML outputted...[which proves that the generator works
fine].
> If I save this XML and then manually run my XSLT (using
> org.apache.xalan.xslt.Process) over it then everything works fine...[which
> proves that the XSLT is fine]
>
> So the problem lies somewhere in what the transformer sends to my
> stylesheet.
>
> Has anyone seen this problem before?
>
> Thanks (in advance)
>
> Chris
> -=-=-
>
>
>    <map:pipeline>
>         <map:match pattern="*-find">
>             <map:generate type="find-generator"/>
>             <map:select type="request">
>                 <map:parameter name="parameter-name"
value="outputformat"/>
>                 <map:when test="html">
>                     <map:transform type="xslt"
> src="stylesheets/find-to-html.xsl"/>
>                 </map:when>
>                 <map:otherwise>
>  <!-- Do nothing at the moment -->
>                 </map:otherwise>
>             </map:select>
>             <map:serialize type="html"/>
>         </map:match>
>     </map:pipeline>
>
> ~~~~~~~~~~~~~~~~~~~~
> Chris Shaw
> > European Central Bank
> > DG Information Systems
> > * [EMAIL PROTECTED]
> ~~~~~~~~~~~~~~~~~~~~
>
>
> Any e-mail message from the European Central Bank (ECB) is sent in good
faith but shall neither be binding nor construed as constituting a
commitment by the ECB except where provided for in a written agreement.
> This e-mail is intended only for the use of the recipient(s) named above.
Any unauthorised disclosure, use or dissemination, either in whole or in
part, is prohibited.
> If you have received this e-mail in error, please notify the sender
immediately via e-mail and delete this e-mail from your system.
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


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

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

Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.


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

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

Reply via email to