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

Re: URL variables

Subject: Re: URL variables
From: Carlos <ho@xxxxxxxxxxx>
Date: Fri, 17 Aug 2001 10:24:43 -0300
url variables
Hi John,

Could you please tell me which software
are you using to run your project?
For example, browser, xsl/xml editor, an API.

My question is that if a browser can on the fly
load a page that is generated by xsl transformation...
Your particular question is of my interest.

You see, I am a newbie....

Thanks a lot
Carlos


On Thursday 16 August 2001 12:56, John Bougie wrote:
> Hi,
>
> I am trying to do something sounds really simple but can't seem to get
> it going.  Here is what I am doing.  I have a HTML form that looks
> something like this:
>
> <html>
>    <body>
>       <form method="get" action="testPage">
>          <table>
>             <tr>
>                <td>ID# :</td>
>                <td><input type="text" name="id1" value=""></input></td>
>                <td>
>                   <input type="submit" value="Submit Query"
> name="submit"></input> </tr>
>          </table>
>       </form>
>    </body>
> </html>
>
> That will post and call and xsl file with a URL that looks like this:
>
> https://localhost/testPage?id1=A&submit=Submit+Query
>
> In the full version of the file, not the trimmed down one above the page
> get called with the proper URL and is rendered, for the most part fine.
>
> What I want to do in the XSL sheet that is not working is print the value
> of ID which is in the URL.  This is an abbreviated version of the XSL
> sheet:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0"> <xsl:output method="html"/>
>
>       <xsl:param name="id" select="."/>
>
>       <html>
>          <body>
>             THE ID ENTERED IS :  <xsl:value-of select="$id"/>
>          </body>
>        </html>
>    </xsl:output>
> </xsl:stylesheet>
>
> It was my understanding that in order to get a variable from the URL
> you need to do a <xsl:param name="id" select="."/> before your first
> template call and then inside a template to access it (i.e. print the
> value) you would need to do a <xsl:value-of select="$id"/>.  Can anyone
> tell me if I am one the right track, or am I way off the mark.
>
> Thanks
> John
>
>
>
>
> __________________________________________________
> FREE voicemail, email, and fax...all in one place.
> Sign Up Now! http://www.onebox.com
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

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


Current Thread

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.