xsl-list
[Top] [All Lists]

using different templates

2002-12-03 11:20:43
Hi there!
I am having a mainMenu.xsl page which gets accessed from two links
1. login
2. redirect

When I login successfuly, at server side I create an xml document called - login
Some variables - x & y in mainMenu.xsl will be populated through "login".

At some pages I do redirect - I create an xml document called - redirect
And again the same variables - x & y (as in above case) will be populated through "redirect".

I did this and it didn't work...
  <xsl:template match="/">
     <xsl:variable  name = "sName">
        <xsl:value-of select="./uSession/sName"/>
     </xsl:variable>
     <xsl:variable  name = "sid">
        <xsl:value-of select="./uSession/sid"/>
     </xsl:variable>
  </xsl:template>

I can't go for having same name for the document beacuse this type of overlap happens with other pages too.
how can i achieve this?? Any suggestions will be of great help.

regards
-Madhavi


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>