看看这个xml怎么用xsl解析

thefan 2003-08-05 11:05:00
有三段xml:
1。
<text>
<id>111</id>
<txt>内容</txt>
</text>
2.
<text>
<id>111</id>
<txt>内容</txt>
</text>
<pic>
<id>222</id>
<img>aaa.jpg</img>
</pic>
3.
<text>
<id>111</id>
<txt>内容</txt>
</text>
<pic>
<id>222</id>
<img>aaa.jpg</img>
</pic>
<text>
<id>333</id>
<txt>内容2</txt>
</text>
我怎样才能用一个xsl解析这三种不同的xml呢?
...全文
20 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
iyiduhsoad 2003-08-05
  • 打赏
  • 举报
回复
<xsl:template match="//*[./id='111']">
</xsl:template>
<xsl:template match="//*[./id='222']">
</xsl:template>
<xsl:template match="//*[./id='333']">
</xsl:template>

8,906

社区成员

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

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