Hi,
I have a question about XSL?
Is it possible to use a result returned from <xsl:call-template> as the sort key? I have been "googling" but no clear answer?
This is my template to return a key_id based on a subscriber_ID

Now I want to sort doing something like this:

But it does not work
This is the code if someone want to modify them
<xsl:template name="getKeyParamIdForSubscriptionId">
<xsl:param name="subsIdentifier" />
<xsl:choose>
<xsl:when test="lineItems[subscriptionIdentifier=$subsIdentifier]/subscriptionAttributes[parameter = $keyParamId]/value">
<xsl:value-of select="lineItems[subscriptionIdentifier=$subsIdentifier]/subscriptionAttributes[parameter = $keyParamId]/value" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$subsIdentifier" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:sort />
<xsl:variable name="thisVal">
<xsl:call-template name="getKeyParamIdForSubscriptionId">
<xsl:with-param name="subsIdentifier">
<xsl:value-of select="$subsId" />
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<result value="{$thisVal}" />
Thanks