xsl这样实现连接。

fullisnull 2003-10-20 05:28:30
xlm文档:
<LinkManBook>
<person>
<personID>11</personID>
<name>liumin</name>
<sex>man</sex>
</person>
</LinkManBook>


xsl文档:
<xsl:template match="person">
<tr>
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="sex"/></td>
<td><a href="http://www.ok.com?personID=(怎么样表示这里的值)"/>更改资料<a></td>
</tr>
</xsl:template>

连接里面要怎样去传递这个参数。
...全文
31 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
wanghr100 2003-10-21
  • 打赏
  • 举报
回复
try...

<xsl:template match="person">
<tr>
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="sex"/></td>
<td>
<xsl:element name="a">
<xsl:attribute name="href">
http://www.ok.com?personID=
<xsl:value-of select="Id" />
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
更改资料
</xsl:element>
</td>
</tr>
</xsl:template>
fullisnull 2003-10-21
  • 打赏
  • 举报
回复
谢谢高手的指点,能告诉我哪有这样的中文书下载么。

purexu 2003-10-20
  • 打赏
  • 举报
回复
把“&”改为“&”

61,111

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧