请教 孟子E章 :xsl格式化xml并分页的问题,问题很可能出在selectSingleNode()方法
_void 2006-02-25 10:33:50 请教 孟子E章 :xsl格式化xml并分页的问题,问题很可能出在selectSingleNode()方法
xml结构:
<Log LastSessionID="4">
<Message SessionID="1">
<User />
<Text />
</Message>
</Log>
xsl代码:
//...
tmp=document.XSLDocument.selectSingleNode("//Message[@test]"); //这里有问题
//alert("Test:tmp="+tmp); //这里得到 Test:tmp=null
tmp.value="position()>="+firstNum+" and position()<="+lastNum + "";
//...
“@test”在这里:
<xsl:template match="Message" >
<xsl:if test="1=1">
<tr>
...
源代码在这里:(直接用IE打开 ince.xml)
http://upserver2.ys168.com/ys168up/D1/?
the_xml.rary71z71fd4fd0b0b3z95b7f9b0b5b7bq5b0b0f9b4b2f9f6e14z97e14e24b1b1f2b0bi0b0fc1fd3z
请大家帮帮忙,在此谢过``
________
我所要的从来没有出现过~