Thanks for the reply. What I actually want to have both xls and html
displayed at the same time with the same result set. I guess select
displays only one of them. Is there a way I can display both at the same
time.
Thanks,
Anna.
On Tue, 2004-11-16 at 06:48, Oliver Powell wrote:
> 2 serializers in one pipeline won't work, it's not allowed. I've never
> serialized to xls before, but I think you should be able use the
> <map:select> tag just before you specify the serializer
>
> So it would be something like this:
>
> <map:match pattern="*.*">
> <map:generate src="{1).xml"/>
> <map:select type="parameter">
> <map:parameter name="parameter-selector-test" value="{2}"/>
> <map:when test="xls">
> <map:serialize type="xls"/><!-- or whatever the excel serializer
> is named, I don't know this -->
> </map:when>
> <map:when test="html">
> <map:serialize type="html"/>
> </map:when>
> </map:select>
> </map:match>
>
> What's happening is the second '*' maps to parameter {2} in the
> pipeline. Parameter Selectors are explained here:
> http://cocoon.apache.org/2.1/userdocs/selectors/parameter-selector.html
>
> Which can be reached via the "User Guide" link under Documentation on
> the Cocoon homepage, from the user guide select "Selectors" on the left.
> This page links to the page I mention above.
>
> I haven't tested this but it should work, or something to the effect
>
> Good luck!
> ollie
>
>
> -----Original Message-----
> From: Anna Bikkina [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 16 November 2004 11:36 a.m.
> To: [EMAIL PROTECTED]
> Subject: Serialize option for both html and xls
>
>
> Hi,
>
> I want a webpage to open a excel and display a html with the same
> result. I tried using 2 serialize statements in my map:match but it did
> not work. Is there any way I can do this. Any help is greatly
> appreciated.
>
> Thanks,
> Anna.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ================================================================
> CAUTION: This e-mail and any attachment(s) contains information
> that is intended to be read only by the named recipient(s). It
> may contain information that is confidential, proprietary or the
> subject of legal privilege. This information is not to be used by
> any other person and/or organisation. If you are not the intended
> recipient, please advise us immediately and delete this e-mail
> from your system. Do not use any information contained in it.
>
> ================================================================
> For more information on the Television New Zealand Group, visit
> us online at http://www.tvnz.co.nz
> ================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]