以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XSL/XSLT/XSL-FO/CSS 』  (http://bbs.xml.org.cn/list.asp?boardid=8)
----  xslt 检索带名称空间的节点属性一问  (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=7680)


--  作者:maddog
--  发布时间:5/19/2004 11:55:00 AM

--  xslt 检索带名称空间的节点属性一问
<node ss:name="test">
</node>

怎么选定这个name属性?

谢谢!


--  作者:sam
--  发布时间:5/19/2004 12:12:00 PM

--  
<?xml version="1.0" encoding="GB2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ss="http://www.example.com">
 <xsl:output method="xml"/>
 <xsl:template match="/">
  <xsl:apply-templates select="node"/>
 </xsl:template>
 <xsl:template match="node">
  <xsl:value-of select="@ss:name"/>
 </xsl:template>
</xsl:stylesheet>


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
93.750ms