大家来看看这个站点
http://www.icesnow.net//xml/xml_ole/txt_1AFA34A7F984EEABDBB0A7D494132EE5.xml
http://www.icesnow.net/xmlsop/xsl/news.xsl
<table width="96%" border="0" align="center" cellpadding="2" cellspacing="2" class="pt9">
<xsl:for-each select="xmldata" order-by="title">
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center"><h4><xsl:value-of select="title"/> </h4></td>
</tr>
<tr>
<td align="center"><xsl:value-of select="times"/></td>
</tr>
</xsl:for-each>
<tr>
<td><hr size="1"></hr>
</td>
</tr>
<tr>
<td>
********* <table align="right" border="0" cellpadding="1" width="302">
<xsl:for-each select="xmldata/photo" order-by="title">
<tr>
<td><xsl:element name="a">
<xsl:attribute name="href">../../img/up/<xsl:value-of /></xsl:attribute>
<xsl:attribute name="target">_blank<xsl:value-of /></xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src">../../img/up/<xsl:value-of /></xsl:attribute>
<xsl:attribute name="align">right</xsl:attribute>
<xsl:attribute name="width">300</xsl:attribute>
<xsl:attribute name="border">1</xsl:attribute>
<xsl:attribute name="link">../../img/up/<xsl:value-of /></xsl:attribute>
</xsl:element>
</xsl:element>
</td>
</tr>
</xsl:for-each>
</table> **********
<xsl:for-each select="xmldata/main" order-by="title">
<xsl:eval no-entities="t">parseXML(this.text)</xsl:eval>
</xsl:for-each>
</td>
</tr>
<xsl:script language="javascript"> function parseXML(txt){ return(txt.replace(/[<]/g,"<").replace(/\n/g,"<br>").replace(/\s/g," "))
} </xsl:script>
<tr>
<td align="right"></td>
</tr>
</table>
星号内的表格代码,是如何判断的?
假如没有图片的话,是不是也应该显示星号内的表格呀?
可是http://www.icesnow.net//xml/xml_ole/txt_1AFA34A7F984EEABDBB0A7D494132EE5.xml网页中却显示不出来表格啊?为什么呀?