|
以文本方式查看主题 - 计算机科学论坛 (http://bbs.xml.org.cn/index.asp) -- 『 XSL/XSLT/XSL-FO/CSS 』 (http://bbs.xml.org.cn/list.asp?boardid=8) ---- 谁可以弄个XSL文档给我 (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=62341) |
|
-- 作者:chaoaq -- 发布时间:5/8/2008 1:28:00 PM -- 谁可以弄个XSL文档给我 <?xml version="1.0" encoding="gb2312"?> <Report><Lang>cn</Lang> <Page><Title>报告</Title><Icon>112</Icon><MenuTitle></MenuTitle><MenuIcon>0</MenuIcon> <Item><Title>版本</Title><Icon>112</Icon><ID>257</ID><Value>EVEREST v2.80.534/cn</Value></Item> <Item><Title>主页</Title><Icon>116</Icon><ID>259</ID><Value>http://www.lavalys.com/</Value></Item> </Page> <Page><Title>摘要</Title><Icon>46</Icon><MenuTitle>计算机</MenuTitle><MenuIcon>46</MenuIcon> <Group><Title>计算机</Title><Icon>46</Icon> <Item><Title>计算机类型</Title><Icon>46</Icon><ID>582</ID><Value>Advanced Configuration and Power Interface (ACPI) PC</Value></Item> <Item><Title>操作系统</Title><Icon>38</Icon><ID>513</ID><Value>Microsoft Windows 2000 Professional</Value></Item> </Group> <Group><Title>主板</Title><Icon>42</Icon> <Item><Title>CPU 类型</Title><Icon>80</Icon><ID>517</ID><Value>Intel Pentium IIIE, 300 MHz (4.5 x 67)</Value></Item> <Item><Title>主板名称</Title><Icon>42</Icon><ID>518</ID><Value>Abit VH6 (1 ISA, 5 PCI, 1 AGP, 1 AMR, 3 DIMM, Audio)</Value></Item> </Group> </Page> </Report> |
|
-- 作者:belinda_pjm -- 发布时间:5/8/2008 3:09:00 PM -- 你想要得到的结果是什么 这样的话xsl文档就比较好写! |
|
-- 作者:belinda_pjm -- 发布时间:5/8/2008 4:46:00 PM -- <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method ="html"/> <xsl:template match="/"> <html> <head> <title> <xsl:value-of select ="Report/Lang"/> </title> </head> <body> <h2><xsl:value-of select ="Report/Page/Title"/> <xsl:value-of select ="Report/Page/Icon"/> <xsl:value-of select ="Report/Page/MenuTitle"/> <xsl:value-of select ="Report/Page/MenuIcon"/> </h2 ><br/> <h3> <xsl:value-of select ="Report/Page/Item/Title"/> <xsl:value-of select ="Report/Page/Item/Icon"/> <xsl:value-of select ="Report/Page/Item/ID"/> <xsl:value-of select ="Report/Page/Item/Value"/> </h3> <br/> </body> </html> </xsl:template> </xsl:stylesheet> 你看这段代码看是不是你想要的 |
|
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
46.875ms |