关于多浏览器的支持问题 <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">http://www.w3.org/TR/xslt20/#XPATH20 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 为什么csdn的论坛Mozilla可以访问呢? xmlns:msxml="urn:schemas-microsoft-com:xslt是微软特有的,不可用的。用标准的<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> http://www.csdn.net/Develop/read_article.asp?id=18658Mazilla看msdn界面和目前是一样的,因此里面的代码并不是一个 但是有的地方必须用到啊。例如使用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">第 <span id="CurrentPage"></span> 页 总 <span id="PageCount"></span> 页    共有 <span id="RecordCount"></span> 条记录</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() < 30 and position() > 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开发另外一套代码,是这样吗? 因为要显示的数据既要实现翻页,又要实现相间条纹,还要排序,不用node-set搞不定啊? To net_lover(孟子E章) : 翻页用的是你的vbs代码,有时IE会崩溃,不知是什么问题? treenode字体加粗显示不全 救命啊!这个问题搜了好长时间都没有解决办法! 请问在C#中怎样比较两个Timer实例的大小,比如判断一个Timer实例变量是否别另一个Timer实例变量大3秒) 为什么我的c#一运行就crash了 急 datagrid控制显示 C#接收,跪求各位大哥大姐帮忙啊!! 非常棒的三态树控件,值得学习和收藏! IOCP Socket 由于系统缓冲区空间不足或队列已满 10055 大神们帮我看看Ling查询问题 偶的vss怎么老是出问题??? C#中如何对整个屏幕进行重绘 发送LIST命令,ftp服务器返回值是用什么编码的?中文文件名在我这边得到的是乱码。
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
例如使用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">第 <span id="CurrentPage"></span> 页 总 <span id="PageCount"></span> 页    共有 <span id="RecordCount"></span> 条记录</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() < 30 and position() > 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开发另外一套代码,是这样吗?
翻页用的是你的vbs代码,有时IE会崩溃,不知是什么问题?