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
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