一个很简单的问题(XML链接问题)

er1981 2003-11-09 07:15:30
在XML中想实现一个链接,象HTML中的<a href="a.html" target=_blank>好热</a>
一样的效果应该在xml中怎么写!
<item href="a.html" label="好热"/> 这样写的话还需要填写什么,target=_blank怎么表现出来。
...全文
69 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
cybernaute 2003-11-11
  • 打赏
  • 举报
回复
<xsl:element name="a">
<xsl:attribute name="href">
a.html
</xsl:attribute>
<xsl:attribute name="target">
_blank
</xsl:attribute>
<xsl:value-of select="item/@label"/>
</xsl:element>
colee 2003-11-10
  • 打赏
  • 举报
回复
<item href="a.html" label="好热" target="blank"/>
funboy88 2003-11-10
  • 打赏
  • 举报
回复
<a>
<xsl:attribute name="href">
a.html
</xsl:attribute>
<xsl:attribute name="target">
_blank
</xsl:attribute>
</a>

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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