P
Professor
Есть такой XSL-код (привожу отрывок):
<xsl:template match="/">
<html>
<head>
<style type="text/css">
body { font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; }
</style>
<script language="JScript" type="text/JavaScript">
var SortParam = "title";
function GetSortParam(){return SortParam;}
</script>
</head>
<body>
<div id="main">
<xsl:variable name="SortParam" select="Как_Сюда_Запихнуть_Результат_GetSortParam()"/>
<xsl:apply-templates select="itm">
<xsl:with-param name="Param" select="$SortParam"/>
</xsl:apply-templates>
</div>
</body>
</html>
</xsl:template>
Вопрос: Как для значения параметра SortParam задать результат функции GetSortParam()???
<xsl:template match="/">
<html>
<head>
<style type="text/css">
body { font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; }
</style>
<script language="JScript" type="text/JavaScript">
var SortParam = "title";
function GetSortParam(){return SortParam;}
</script>
</head>
<body>
<div id="main">
<xsl:variable name="SortParam" select="Как_Сюда_Запихнуть_Результат_GetSortParam()"/>
<xsl:apply-templates select="itm">
<xsl:with-param name="Param" select="$SortParam"/>
</xsl:apply-templates>
</div>
</body>
</html>
</xsl:template>
Вопрос: Как для значения параметра SortParam задать результат функции GetSortParam()???