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

Use of Parameters ...Help! :)

Subject: Use of Parameters ...Help! :)
From: Bill Shaw - EBCX <BillShaw@xxxxxxxxxxxxxxxxx>
Date: Wed, 16 Aug 2000 13:26:34 -0700
xsl template pram
I'm still very new to this so excuse my ignorance.  I got some excellent
help in my last question on passing cookies into the stylesheet.  Using an
example I was directed to from Michael Kay in an article he wrote at MSDN, I
can now get my cookie passed but into the PARAM but my stylesheet breaks
when I try to use the pram in various places within the stylesheet.  I
figure it must be syntax on how I'm using it, or you cannot use it where I
want to.  I need to use it in the SORT statement, template match and
apply-templates (see below).  My cookie is outputting correctly, I can call
<xsl:value-of "$myCookie"/> and I get my cookie I set.

Again, all help is greatly appreciated!   Thanks, Bill

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:param name="myParm" select="'myCookie'"/>

	<xsl:template match="/">
	
		<xsl:for-each select="//agency//">
		<xsl:sort order="ascending" select="$myParm"/>

			<xsl:apply-templates select="$myParm"/>

		</xsl:for-each>

	</xsl:template>

		<xsl:template match="$myParm">
		<b> <xsl:value-of select="."/> </b>	<br/>
		</xsl:template>

	</xsl:stylesheet>


 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.