以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 XSL/XSLT/XSL-FO/CSS 』  (http://bbs.xml.org.cn/list.asp?boardid=8)
----  复选框怎么转换?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=15774)


--  作者:alextoby
--  发布时间:3/18/2005 10:50:00 AM

--  复选框怎么转换?
<xsl:for-each select="nsData:DataSet">
  <xsl:element name="input">
 <xsl:attribute name="type">
  checkbox
 </xsl:attribute>
 <xsl:attribute name="name">
  checkbox
 </xsl:attribute>
 <xsl:attribute name="value">
  checkbox
 </xsl:attribute>
 <xsl:value-of select="nsData:Category" />
   </xsl:element>
</xsl:for-each>

以上的xsl意思为循环显示复选框,为什么页面转换后得到的是文本框


--  作者:sam
--  发布时间:3/18/2005 2:12:00 PM

--  
不要随便换行
<xsl:attribute name="type">checkbox</xsl:attribute>
这样写应该没问题
--  作者:alextoby
--  发布时间:3/18/2005 6:13:00 PM

--  
Thanks!
--  作者:francis
--  发布时间:3/24/2005 2:31:00 PM

--  
可以了吗,不会吧,换行也有这种问题啊?
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms