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

xsl:param value in xsl:sort

Subject: xsl:param value in xsl:sort
From: "Friedlander, Hal" <Hal@xxxxxxxxxxxx>
Date: Mon, 25 Sep 2000 09:08:01 -0400
xsl param value
I'm trying to use the value of a parameter as the select value of an
xsl:sort element.
the XSL code is below. As you can guess from the XSL, I'm using the MSXML3
parser and passing parameter values to the xsl from an asp page. There is no
problem just passing the parameters, so I'm guessing the problem is my xsl
syntax.
Thank you,
Hal Friedlander
----------------------------------------------
<?xml version='1.0'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="srt" select="AddressID"/>
<xsl:template match="/">

<HTML>
<BODY>
<TABLE BORDER="2" BGCOLOR="PINK">
<TR><TD COLSPAN="10">GUSER WITH VALUE PASSED FROM ASP PAGE MATCHES PERSONID
FROM XML</TD></TR>
<TR>
	<TD>sort</TD>
	<TD><a href="pasparameter2.asp?PersonID">PersonID</a></TD>
	<TD><a href="pasparameter2.asp?AddressID">AddressID</a></TD>
	<TD><a href="pasparameter2.asp?PersonType">PersonType</a></TD>
	<TD>ReferredByID</TD>
	<TD>FirstName</TD>
	<TD>LastName</TD>
	<TD>Alias</TD>
	<TD>DateOfBirth</TD>
	<TD>EmailAddress</TD>
	<TD>UserName</TD>
	<TD>Password</TD>
	<TD>Sex</TD>
	<TD>RegistrationStatus</TD>
	<TD>RegistrationDate</TD>
	<TD>PasswordKeyword</TD>
</TR>
<xsl:for-each select="//Person">
<xsl:sort select="$srt" order="descending" />
<TR>
<TD><xsl:value-of select="$srt"/></TD>
<TD><xsl:value-of select="PersonID"/></TD>
<TD><xsl:value-of select="AddressID"/></TD>
<TD><xsl:value-of select="PersonType"/></TD>
<TD><xsl:value-of select="ReferredByID"/></TD>
<TD><xsl:value-of select="FirstName"/></TD>
<TD><xsl:value-of select="LastName"/></TD>
<TD><xsl:value-of select="Alias"/></TD>
<TD><xsl:value-of select="DateOfBirth"/></TD>
<TD><xsl:value-of select="EmailAddress"/></TD>
<TD><xsl:value-of select="UserName"/></TD>
<TD><xsl:value-of select="Password"/></TD>
<TD><xsl:value-of select="Sex"/></TD>
<TD><xsl:value-of select="RegistrationStatus"/></TD>
<TD><xsl:value-of select="RegistrationDate"/></TD>
<TD><xsl:value-of select="PasswordKeyword"/></TD>
</TR>
</TABLE>
</BODY>
</HTML>
</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.