[問題] 有關於xsl的程式
最近我在修改別人的程式碼,突然看到一種檔名叫做xsl
後來有稍微在w3c查一下
但是還是不是很懂這個的用處,不過好像是可以用來處理文件的樣子
然後我就照著這個檔案加一些自己的東西
結果遇到一個問題
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="" rel="nofollow">http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<table id="list_table">
<tr><th>姓名</th><th>修改資料</th><th>刪除</th></tr>
<xsl:for-each select="root/user">
<tr>
<td><xsl:value-of select="name" /></td>
<td>
<xsl:element name="a">
<xsl:attribute name="href">
#<xsl:value-of select="uid"/>
</xsl:attribute>
<xsl:attribute name="onclick">
edit_usr('<xsl:value-of select="uid"/>')
</xsl:attribute>
<xsl:attribute name="id">
<xsl:value-of select="uid"/>
</xsl:attribute>
修改資料
</xsl:element>
</td>
<td>
<xsl:element name="a">
<xsl:attribute name="href">
#<xsl:value-of select="uid"/>
</xsl:attribute>
<xsl:attribute name="onclick">
delete_user('<xsl:value-of select="uid"/>')
</xsl:attribute>
<xsl:attribute name="id">
<xsl:value-of select="uid"/>
</xsl:attribute>
刪除
</xsl:element>
</td>
<td>
<xsl:element name="input">
^^^^^^^^^^^^^^^^^^^^^^^^^
<xsl:attribute name="type">
^^^^^^^^^^^^^^^^^^^^^^^^^^
</xsl:attribute>
</xsl:element>
</td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
我想要在後面在那之後增加一個checkbox
但是...請問一下要怎麼加阿....
前面兩個都是用select的...但是現在沒有值可以select的話咧??
先謝謝大家了!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.174.35.132
※ 編輯: ROCKIT 來自: 218.174.35.132 (02/25 11:53)
→
02/25 23:20, , 1F
02/25 23:20, 1F
→
02/25 23:20, , 2F
02/25 23:20, 2F
→
02/26 03:07, , 3F
02/26 03:07, 3F
→
02/26 03:07, , 4F
02/26 03:07, 4F
→
02/26 07:59, , 5F
02/26 07:59, 5F
→
02/26 08:00, , 6F
02/26 08:00, 6F
→
02/26 08:01, , 7F
02/26 08:01, 7F
→
02/26 08:01, , 8F
02/26 08:01, 8F
→
02/26 11:11, , 9F
02/26 11:11, 9F
→
02/26 17:44, , 10F
02/26 17:44, 10F