请教一个<xsl:choose>的问题,大神进来下
xml吧
全部回复
仅看楼主
level 1
ljuyx010 楼主
我网页上的一个列表本来的6列一排的,感觉有些空想改成10列一排的,但是我对xml代码不是很懂特来此吧请教下各位大神
2楼上源码
2012年05月04日 03点05分 1
level 1
ljuyx010 楼主
<xsl:template match="/">
<xsl:choose>
<xsl:when test="xml/@action='1'"><xsl:call-template name="match_1"/></xsl:when>
<xsl:when test="xml/@action='2'"><xsl:call-template name="match_2"/></xsl:when>
<xsl:when test="xml/@action='3'"><xsl:call-template name="match_3"/></xsl:when>
<xsl:when test="xml/@action='4'"><xsl:call-template name="match_4"/></xsl:when>
<xsl:when test="xml/@action='5'"><xsl:call-template name="match_5"/></xsl:when>
<xsl:when test="xml/@action='6'"><xsl:call-template name="match_6"/></xsl:when>
<xsl:otherwise><xsl:call-template name="other"/></xsl:otherwise>
</xsl:choose>
I
2012年05月04日 03点05分 2
level 1
ljuyx010 楼主
后面的代码贴不上来了,可恶的度娘说我广告,我晕,上我百度知道求助的地址吧
http://zhidao.baidu.com/question/419137707.html?quesup2&oldq=1
2012年05月04日 03点05分 3
level 1
ljuyx010 楼主
2012年05月04日 03点05分 4
1