You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Bhavya Sharma <bh...@gmail.com> on 2006/08/28 06:57:02 UTC

How to Redirection

Hi Devs
i want to do redirection in xslt ,is there any way to do that ?

-- 
With-
Thanks and Regards

Bhavya Sharma

Re: How to Redirection

Posted by Bhavya Sharma <bh...@gmail.com>.
Hi Kamal
 Ignore the previous Mail, your first solution is working properly, Thanks a
Lot

;) Bhavya
On 8/28/06, Bhavya Sharma <bh...@gmail.com> wrote:
>
> Hi Kamal Actually , i am checking username n password, in one xslt, now
> after the authntication i want to show diifferent page. i have used <meta
> eqiv ="" ... but it could'nt help me , i have used javascript but it
> could'nt encode the URL in proper way
>
>
> On 8/28/06, Kamal Bhatt <kb...@tt.com.au> wrote:
> >
> > OK, once again, I am uncertain as to what you want. I assume you mean
> > call one XSLT in another. You can simply import one XSLT into another
> > using xsl:import. Then you can call whatever is referenced in the
> > imported XSLT as it it were part of the current XSLT. Another
> > interpretation is taking the output from XSLT transformation and putting
> > it into another at the sitemap level. If that is the case, you can
> > simply call another map:transform with the other XSLT.
> >
> > Can you be more clearer and more explict as to what you want to do?
> >
> > Bhavya Sharma wrote:
> > > Hi Kamal Thanks for replying
> > > acually i want to redirect from one xsl to another
> > >
> > > Bhavya
> > >
> > > On 8/28/06, *Kamal Bhatt* < kbhatt@tt.com.au
> > > <ma...@tt.com.au>> wrote:
> > >
> > >     Bhavya Sharma wrote:
> > >     > Hi Devs
> > >     > i want to do redirection in xslt ,is there any way to do that ?
> > >     >
> > >     > --
> > >     > With-
> > >     > Thanks and Regards
> > >     >
> > >     > Bhavya Sharma
> > >     What do you mean by redirection in XSLT? Do you want to create
> > >     HTML that
> > >     redirects to another page or do you mean "redirect" the XML to
> > >     another XSLT?
> > >
> > >     I use the following code to redirect:
> > >
> > >     <xsl:stylesheet version=" 1.0"
> > >         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > >         xmlns=" http://www.w3.org/1999/xhtml "
> > >         >
> > >     <xsl:param name="url"/>
> > >     <xsl:template match="*">
> > >         <html>
> > >         <head>
> > >             <LINK type="text/plain" href="{$url}"/>
> > >             <META http-equiv="REFRESH" content="1;url={$url}"/>
> > >         </head>
> > >         <body/>
> > >         </html>
> > >     </xsl:template>
> > >
> > >     </xsl:stylesheet>
> > >
> > >     As you can see, what you pass in doesn't matter, just as long as
> > you
> > >     pass the URL in as a parameter.
> > >
> > >     --
> > >     Kamal Bhatt
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > >     To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> > >     <ma...@lenya.apache.org>
> > >     For additional commands, e-mail: user-help@lenya.apache.org
> > >     <ma...@lenya.apache.org>
> > >
> > >
> > >
> > >
> > > --
> > > With-
> > > Thanks and Regards
> > >
> > > Bhavya Sharma
> >
> >
> > --
> > Kamal Bhatt
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> > For additional commands, e-mail: user-help@lenya.apache.org
> >
> >
>
>
> --
>
> With-
> Thanks and Regards
>
> Bhavya Sharma
>



-- 
With-
Thanks and Regards

Bhavya Sharma

Re: How to Redirection

Posted by Bhavya Sharma <bh...@gmail.com>.
Hi Kamal Actually , i am checking username n password, in one xslt, now
after the authntication i want to show diifferent page. i have used <meta
eqiv ="" ... but it could'nt help me , i have used javascript but it
could'nt encode the URL in proper way

On 8/28/06, Kamal Bhatt <kb...@tt.com.au> wrote:
>
> OK, once again, I am uncertain as to what you want. I assume you mean
> call one XSLT in another. You can simply import one XSLT into another
> using xsl:import. Then you can call whatever is referenced in the
> imported XSLT as it it were part of the current XSLT. Another
> interpretation is taking the output from XSLT transformation and putting
> it into another at the sitemap level. If that is the case, you can
> simply call another map:transform with the other XSLT.
>
> Can you be more clearer and more explict as to what you want to do?
>
> Bhavya Sharma wrote:
> > Hi Kamal Thanks for replying
> > acually i want to redirect from one xsl to another
> >
> > Bhavya
> >
> > On 8/28/06, *Kamal Bhatt* < kbhatt@tt.com.au
> > <ma...@tt.com.au>> wrote:
> >
> >     Bhavya Sharma wrote:
> >     > Hi Devs
> >     > i want to do redirection in xslt ,is there any way to do that ?
> >     >
> >     > --
> >     > With-
> >     > Thanks and Regards
> >     >
> >     > Bhavya Sharma
> >     What do you mean by redirection in XSLT? Do you want to create
> >     HTML that
> >     redirects to another page or do you mean "redirect" the XML to
> >     another XSLT?
> >
> >     I use the following code to redirect:
> >
> >     <xsl:stylesheet version="1.0"
> >         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> >         xmlns=" http://www.w3.org/1999/xhtml"
> >         >
> >     <xsl:param name="url"/>
> >     <xsl:template match="*">
> >         <html>
> >         <head>
> >             <LINK type="text/plain" href="{$url}"/>
> >             <META http-equiv="REFRESH" content="1;url={$url}"/>
> >         </head>
> >         <body/>
> >         </html>
> >     </xsl:template>
> >
> >     </xsl:stylesheet>
> >
> >     As you can see, what you pass in doesn't matter, just as long as you
> >     pass the URL in as a parameter.
> >
> >     --
> >     Kamal Bhatt
> >
> >
> >
> ---------------------------------------------------------------------
> >     To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> >     <ma...@lenya.apache.org>
> >     For additional commands, e-mail: user-help@lenya.apache.org
> >     <ma...@lenya.apache.org>
> >
> >
> >
> >
> > --
> > With-
> > Thanks and Regards
> >
> > Bhavya Sharma
>
>
> --
> Kamal Bhatt
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>


-- 
With-
Thanks and Regards

Bhavya Sharma

Re: How to Redirection

Posted by Kamal Bhatt <kb...@tt.com.au>.
OK, once again, I am uncertain as to what you want. I assume you mean 
call one XSLT in another. You can simply import one XSLT into another 
using xsl:import. Then you can call whatever is referenced in the 
imported XSLT as it it were part of the current XSLT. Another 
interpretation is taking the output from XSLT transformation and putting 
it into another at the sitemap level. If that is the case, you can 
simply call another map:transform with the other XSLT.

Can you be more clearer and more explict as to what you want to do?

Bhavya Sharma wrote:
> Hi Kamal Thanks for replying
> acually i want to redirect from one xsl to another
>
> Bhavya
>
> On 8/28/06, *Kamal Bhatt* < kbhatt@tt.com.au 
> <ma...@tt.com.au>> wrote:
>
>     Bhavya Sharma wrote:
>     > Hi Devs
>     > i want to do redirection in xslt ,is there any way to do that ?
>     >
>     > --
>     > With-
>     > Thanks and Regards
>     >
>     > Bhavya Sharma
>     What do you mean by redirection in XSLT? Do you want to create
>     HTML that
>     redirects to another page or do you mean "redirect" the XML to
>     another XSLT?
>
>     I use the following code to redirect:
>
>     <xsl:stylesheet version="1.0"
>         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>         xmlns=" http://www.w3.org/1999/xhtml"
>         >
>     <xsl:param name="url"/>
>     <xsl:template match="*">
>         <html>
>         <head>
>             <LINK type="text/plain" href="{$url}"/>
>             <META http-equiv="REFRESH" content="1;url={$url}"/>
>         </head>
>         <body/>
>         </html>
>     </xsl:template>
>
>     </xsl:stylesheet>
>
>     As you can see, what you pass in doesn't matter, just as long as you
>     pass the URL in as a parameter.
>
>     --
>     Kamal Bhatt
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>     <ma...@lenya.apache.org>
>     For additional commands, e-mail: user-help@lenya.apache.org
>     <ma...@lenya.apache.org>
>
>
>
>
> -- 
> With-
> Thanks and Regards
>
> Bhavya Sharma 


-- 
Kamal Bhatt


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: How to Redirection

Posted by Bhavya Sharma <bh...@gmail.com>.
Hi Kamal Thanks for replying
acually i want to redirect from one xsl to another

Bhavya

On 8/28/06, Kamal Bhatt <kb...@tt.com.au> wrote:
>
> Bhavya Sharma wrote:
> > Hi Devs
> > i want to do redirection in xslt ,is there any way to do that ?
> >
> > --
> > With-
> > Thanks and Regards
> >
> > Bhavya Sharma
> What do you mean by redirection in XSLT? Do you want to create HTML that
> redirects to another page or do you mean "redirect" the XML to another
> XSLT?
>
> I use the following code to redirect:
>
> <xsl:stylesheet version="1.0"
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>     xmlns="http://www.w3.org/1999/xhtml"
>     >
> <xsl:param name="url"/>
> <xsl:template match="*">
>     <html>
>     <head>
>         <LINK type="text/plain" href="{$url}"/>
>         <META http-equiv="REFRESH" content="1;url={$url}"/>
>     </head>
>     <body/>
>     </html>
> </xsl:template>
>
> </xsl:stylesheet>
>
> As you can see, what you pass in doesn't matter, just as long as you
> pass the URL in as a parameter.
>
> --
> Kamal Bhatt
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>


-- 
With-
Thanks and Regards

Bhavya Sharma

Re: How to Redirection

Posted by Kamal Bhatt <kb...@tt.com.au>.
Bhavya Sharma wrote:
> Hi Devs
> i want to do redirection in xslt ,is there any way to do that ?
>
> -- 
> With-
> Thanks and Regards
>
> Bhavya Sharma 
What do you mean by redirection in XSLT? Do you want to create HTML that 
redirects to another page or do you mean "redirect" the XML to another XSLT?

I use the following code to redirect:

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns="http://www.w3.org/1999/xhtml"
    >
<xsl:param name="url"/>
<xsl:template match="*">
    <html>
    <head>
        <LINK type="text/plain" href="{$url}"/>
        <META http-equiv="REFRESH" content="1;url={$url}"/>
    </head>
    <body/>
    </html>
</xsl:template>

</xsl:stylesheet>

As you can see, what you pass in doesn't matter, just as long as you 
pass the URL in as a parameter.

-- 
Kamal Bhatt


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org