以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XQuery/XLink/XPointer/ 』  (http://bbs.xml.org.cn/list.asp?boardid=14)
----  XSL转换问题  (http://bbs.xml.org.cn/dispbbs.asp?boardid=14&rootid=&id=21104)


--  作者:fivestars
--  发布时间:8/13/2005 12:12:00 PM

--  XSL转换问题
<?xml version="1.0" encoding="GB2312"?>
<root>
<a>
<b aa="" bb="">1</b>
<c aa="" bb="">2</c>
<d aa="" bb="">3</d>
<e aa="" bb="">4</e>
</a>
</root>

需要XSL文件,形成如下文件
<?xml version="1.0" encoding="GB2312"?>
<root>
<b aa="" bb="">1</b>
<d aa="" bb="">3</d>
<root>


--  作者:孤独
--  发布时间:8/13/2005 8:41:00 PM

--  
倒...条件是什么.......怎么筛选暑假?
--  作者:VegenaShark
--  发布时间:8/29/2005 11:31:00 AM

--  
<?xml version="1.0"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/TR/REC-html40">

<xsl:template match="/">
<xsl:for-each select="//root">
<xsl:copy>
<xsl:copy-of select="//b" />
<xsl:copy-of select="//d" />
</xsl:copy>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>


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