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

Re: Trying to read a parameter in the request in a XSL

Subject: Re: Trying to read a parameter in the request in a XSL file
From: S Woodside <sbwoodside@xxxxxxxxx>
Date: Sat, 4 Oct 2003 13:13:37 -0400
uri parameter

On Friday, October 3, 2003, at 04:28 PM, Diodato, Anthony wrote:


When you first go to http://localhost:8100/cocoon/test.xml at first, only
the Level1 tag will be shown. (Utility as a link)
Now, when you click on Utility (This is the link >>
http://localhost:8100/cocoon/test.xml?L1=util for Utility)
You will still be on test.xml, but in my XSL, I want to take the L1
parameter, and be able to display the Level2's below it.

You could do this in AxKit by simply adding a top-level param at the top of the XSL document with the correct name. This will allow access the URI parameter from the XSL. E.g.,


<xsl:stylesheet ... >
...
<xsl:param name="L1"/>
...
<xsl:template ... [etc]

Then in your templates test if it was set (automagically) by AxKit from the URI parameter with a boolean test:

<xsl:if test="$L1">

the value is a string

<xsl:if test="$L1 = 'util'>
...

AxKit and Cocoon are similar so there might be a similar feature in Cocoon otherwise why not use AxKit ;-)

simon


-- www.simonwoodside.com :: www.openict.net :: www.semacode.org 99% Devil, 1% Angel


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.