Hi Neil,

It is not very clean, but if you don't find another solution, you can read
in you Action the file content/table_names.xml to find your URL (if it is a
static file, you do it once). You can so add it in a sitemap parameter.

Ludovic

----- Original Message -----
From: "Neil A" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 09, 2002 5:06 PM
Subject: Re: Redirect in XSP


> Thanks Joerg and Artur, but in my case I'm building for WAP.
> Unfortunately the WML equivalent of your client side redirect crashes
> early Nokia 7110 phones.
>
> I really want to use <map:redirect-to> but my URL is in the XML of the
> pipeline and I can't get it into a sitemap parameter:
>
> <map:match pattern="link/id*">
> <map:generate src="content/table_names.xml"/>
> <map:transform src="directory/format_link_query.xsl" type="xslt">
> <map:parameter name="link_id" value="{1}"/>
> </map:transform>
> <map:transform type="sql"/>
>
> <!-- Missing link to get url from xml and make into sitemap parameter
> -->
>
> <map:redirect-to uri="{take_me_here}"/>
> </map:match>
>
> Actions can't seem to read or transform the pipeline xml, they can only
> read and act on request parameters.  XSLT transformers can't create
> sitemap parameters.  So I'm a bit stuck.  Can anyone fill in the gap?
>
> Thanks,
>
> Neil.
>
>
> On Saturday, November 9, 2002, at 03:23 AM, Artur Bialecki wrote:
>
> >
> >> Who should close the <head/> element? The transformer can not send an
> >> endElement() until everything inside is processed. Of course you have
> > to
> >
> > Ofcourse, I don't know what I was thinking.
> >
> >> Does this make it a bit clearer? Everybody can of course improve my
> >
> > This makes it very clear.
> >
> > Thanks Joerg,
> >
> > Artur...
> >
> >
> > ---------------------------------------------------------------------
> > 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]>
> >
> >
>
>
> ---------------------------------------------------------------------
> 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]>
>
>
>


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