【求助】一个关于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">
 
</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"> <xsl:value-of select="@NAME"/></font>
</xsl:element>
</p>
</div>
</td>
</tr>
</xsl:for-each>
</tr>
<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">
 
</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"> <xsl:value-of select="@NAME"/></font>
</xsl:element>
</p>
</div>
</td>
</tr>
</xsl:for-each>
</tr>
作者: wisejenny 发布时间: 2006-06-16
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28