+ -
当前位置:首页 → 问答吧 → 【求助】一个关于XSLT的问题!!!!

【求助】一个关于XSLT的问题!!!!

时间:2006-06-16

来源:互联网

下面是一段xslt的代码,我想在xsl:for-each段加个<div>标记,以便我可以将整个XSL:FOR-EACH段输出的内容隐藏,当我想通过下载工具 所在的DIV控制他显示的时候,他还可以将整个XSL:FOR-EACH段的输出全都显示出来,请高手指点,最好提供源码:
<tr valign="top">
<td height="18" valign="top">
  <div align="center">
   <font color="#FFFFFF">
     <font color="#000000">
       <xsl:element name="img">
         <xsl:attribute name="src"><xsl:value-of select="/DIPS_HOME/@WEB_SIGN"/>images/download.bmp
         </xsl:attribute>
       </xsl:element>下载工具
     </font>
    </font>
   </div>
</td>
<xsl:for-each select="DIPS_HOME/READER/ITEM">
<!--<tr valign="top">
<td height="5" valign="top">
&#x20;
</td>
</tr>-->
<tr valign="top">
<td width="100%" valign="top">
<p style="line-height: 100%">       
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="/DIPS_HOME/@WEB_SIGN"/>Down.asp?FileName=<xsl:value-of select="/DIPS_HOME/@WEB_SIGN"/><xsl:value-of select="@LINK"/></xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="src"><xsl:value-of select="/DIPS_HOME/@WEB_SIGN"/>images/<xsl:value-of select="@ICON"/> </xsl:attribute>
<!--<xsl:attribute name="width">18</xsl:attribute>
<xsl:attribute name="height">18</xsl:attribute>-->
</xsl:element>
<xsl:attribute name="style">{text-decoration: none}</xsl:attribute>
<font color="#000000">&#x20;<xsl:value-of select="@NAME"/></font>
</xsl:element>
</p>
</div>
</td>
</tr>
</xsl:for-each>
</tr>

作者: wisejenny   发布时间: 2006-06-16