<xsl:stylesheet version="2.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">http://www.w3.org/TR/xslt20/#XPATH20

解决方案 »

  1.   

    为什么csdn的论坛Mozilla可以访问呢?
      

  2.   

    xmlns:msxml="urn:schemas-microsoft-com:xslt是微软特有的,不可用的。用标准的
    <xsl:stylesheet version="2.0"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      

  3.   

    http://www.csdn.net/Develop/read_article.asp?id=18658Mazilla看msdn界面和目前是一样的,因此里面的代码并不是一个
      

  4.   

    但是有的地方必须用到啊。
    例如使用node-set.
    <?xml version="1.0" encoding="gb2312" ?>
    <xsl:stylesheet version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt">
    <xsl:import href="title.xsl"/>
    <xsl:import href="top.xsl"/>
    <xsl:template match="/"><xsl:apply-templates/></xsl:template><xsl:template match="wholeView">
    <html>
    <head><title>MSICC XML Forum</title></head>
    <body>
    <table width="100%" border="0" align="center" cellspacing="0">  <xsl:apply-templates select="boardInfo"/>
      <xsl:apply-templates select="isTop"/>
      <xsl:apply-templates select="passage"/> 
    </table>
    </body>
    </html>
    </xsl:template>
    <xsl:template match="passage"><xsl:variable name="list.tf">
    <xsl:for-each select="question">
    <xsl:sort select="@timeNow" data-type="text" order="descending"/>
    <xsl:copy-of select="."/>
    </xsl:for-each>
    </xsl:variable><xsl:variable name="list" select="msxml:node-set($list.tf)"/>
    <tr><td align="center">
    <table width="100%" height="20" border="0">
    <tr>
    <td width="100%" align="left">第&#160;<span id="CurrentPage"></span>&#160;页&#160;总&#160;<span id="PageCount"></span>&#160;页&#160;&#160;&#160;&#160;共有&#160;<span id="RecordCount"></span>&#160;条记录</td>
    <td align="right"></td> 
    <td align="right"> 
    <span id="Paging">
    <input  type="button" OnClick="FirstPage()" value="第一页"/>
    <input   type="button" OnClick="previousPage(1)" value="上一页"/>
    <input   type="button" OnClick="nextPage(1)" value="下一页"/>
    <input   type="button" OnClick="LastPage()" value="最末页"/>
    </span> 
    </td>
    </tr>
    </table>
    </td></tr> <tr> 
        <td align="center" colspan="2">

      <table width="100%" height="20" border="0" cellspacing="0">
    <th></th>
    <th align="left">主题</th>
    <th></th>
    <th width="60">分数</th>
    <th width="60">回复</th>
    <th align="center">最后响应时间</th>

    <xsl:variable name="rootBoard"><xsl:value-of select="/wholeView/boardInfo/rootBoard"/></xsl:variable>
    <xsl:variable name="childBoard"><xsl:value-of select="/wholeView/boardInfo/childBoard"/></xsl:variable>
    <xsl:variable name="sectionNow"><xsl:value-of select="/wholeView/boardInfo/sectionNow"/></xsl:variable>

    <xsl:for-each select="$list/question[position() &#60; 30 and position() &#62; 0]">
    <tr>
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 1">Lavender</xsl:if>
    <xsl:if test="position() mod 2 = 0">#ffffff</xsl:if>
    </xsl:attribute>
    <td height="20" width="15"><!--〃?·ˇ∫§︿□◇→ №々‖—.。-ζ-->
        <xsl:if test="@isPaid=0"><b><font size="2" color="red">?</font></b></xsl:if>
    <xsl:if test="@isPaid=1"><b><font size="2" color="green">√</font></b></xsl:if>
            <xsl:if test="@isPaid=2"><b><font size="2" color="brown">→</font></b></xsl:if>
        </td>
        
    <td style="TABLE-LAYOUT: fixed" height="20">
    <div align="left">
    <font color='#2A0055'>
    <a target="_blank">
    <xsl:attribute name="href">
     /Forum/XML/board/exchange.aspx?path=<xsl:value-of select="@filePath"></xsl:value-of>
    </xsl:attribute>

    <xsl:value-of select="@title"/>(<xsl:value-of select="@author"/>)
    </a>
    </font>
    </div>
       
    </td> <td height="20" width="20"></td>
    <td height="20" align="center" width="50"><xsl:value-of select="@point"/></td>
    <td height="20" align="center" width="50"><xsl:value-of select="@replyNum"/></td>
    <td height="20" width="150" align="center"><xsl:value-of select="@timeNow"/></td>
      </tr>

    </xsl:for-each>

    </table>
    </td>
    </tr>
      <tr height="1"><td height="1" bgcolor="black"></td></tr>
     <tr>
      <td align="right"> 
    <span id="Paging2">
    <input   type="button" OnClick="FirstPage()" value="第一页"/>
    <input   type="button" OnClick="previousPage(1)" value="上一页"/>
    <input   type="button" OnClick="nextPage(1)" value="下一页"/>
    <input   type="button" OnClick="LastPage()" value="最末页"/>
    </span> 
    </td>
      
      </tr>

    </xsl:template></xsl:stylesheet>
    To net_lover(孟子E章) :
          你的意思是说必须为mozilla开发另外一套代码,是这样吗?
      

  5.   

    因为要显示的数据既要实现翻页,又要实现相间条纹,还要排序,不用node-set搞不定啊?
      

  6.   

    To net_lover(孟子E章) :
          翻页用的是你的vbs代码,有时IE会崩溃,不知是什么问题?