可否根据xml文件中某个值,显示不同的值

casinosun 2009-02-09 03:07:17
xml文件内容不能改的有个内容是<sortid>1</sortid> ....<sortid>2</sortid>在网页中显示时
能不能根据值 譬如1显示是“升” 2显示“降”。。。。
...全文
131 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ld2099 2009-02-12
  • 打赏
  • 举报
回复
没用过xsl
casinosun 2009-02-12
  • 打赏
  • 举报
回复
我用<xsl:choose>
<xsl:when test="@Type='1'">

</xsl:when>
<xsl:when test="@Type='2'">

</xsl:when>
<xsl:otherwise>
其他
</xsl:otherwise>
</xsl:choose>
显示始终是“其他”
casinosun 2009-02-12
  • 打赏
  • 举报
回复
xsl文件能解决吗?

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧