开发者

XSLT sorting:both ascending and descending

开发者 https://www.devze.com 2023-02-19 04:21 出处:网络
i have a sharepoint list column which has number datatype ..whenever t开发者_Python百科he user sorts them ascending or descending i should get it as they were..but xslt sorting allows either ascending

i have a sharepoint list column which has number datatype ..whenever t开发者_Python百科he user sorts them ascending or descending i should get it as they were..but xslt sorting allows either ascending or descending..how can i make it flexible?..could anyone please help me with this


you can use conditional formating

<xsl:choose>
<xsl:when test="$sortorder='Asc'>
<xsl:call-template name="asctemplate" />
</xsl:when>
<xsl:when test="$sortorder='Desc'>
<xsl:call-template name="desctemplate" />
</xsl:when>
</xsl:choose>
0

精彩评论

暂无评论...
验证码 换一张
取 消