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]>