[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: passing username

Subject: Re: passing username
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Mon, 26 Mar 2001 15:58:56 +0100
pass on username in ie
Hi Gloria,

> I am using (test.xsl + test.xml) to produce another form on the
> browser. Is there any way of getting value of the username passed to
> the second form (i.e. form that generated from (test.xml + test.xsl)

You need to pass the username in as a parameter to test.xsl.  Set up
test.xsl so that it can accept the parameter, using an xsl:param
element at the top level of the stylesheet (i.e. as a child of
xsl:stylesheet):

<xsl:param name="username" />

Then use this $username when you create the form with test.xsl.  For
example, to get its value you can use:

  <xsl:value-of select="$username" />

How you pass in the parameter to the stylesheet depends on what XSLT
processor you're using.  If you're using MSXML (i.e. doing the
transformation client-side with IE) then you need to script the
transformation and use the addParameter() method:

  addParameter('username', form.username)

That entails adding some Javascript to the login.html page. See the
MSXML SDK documentation for more details.

If you're using Cocoon then you can use the URL to pass the parameter,
so for example:

  test.xml?username=Fred

will set the username parameter to the string 'Fred'.

I hope that helps,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



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


Current Thread
  • passing username
    • g p - Sat, 17 Mar 2001 12:40:56 -0500 (EST)
      • Goetz Bock - Sat, 17 Mar 2001 13:01:20 -0500 (EST)
      • Jeni Tennison - Mon, 26 Mar 2001 10:16:20 -0500 (EST) <=
      • <Possible follow-ups>
      • g p - Wed, 28 Mar 2001 12:31:21 -0500 (EST)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.