扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:jackyrong编译 来源:天极软件频道 2007年11月8日
关键字: Windows
<?xml version="1.0" encoding="UTF-8"?> <books> <book price="34.95"> <title>Teach Yourself Active Server Pages 3.0 in 21 Days</title> <authors> <author>Mitchell</author> <author>Atkinson</author> </authors> <year>1999</year> </book> <book price="29.95"> <title>Designing Active Server Pages</title> <authors> <author>Mitchell</author> </authors> <year>2000</year> </book> <book price="34.95"> <title>ASP.NET: Tips, Tutorials, and Code</title> <authors> <author>Mitchell</author> <author>Mack</author> <author>Walther</author> <author>Seven</author> <author>Anders</author> <author>Nathan</author> <author>Wahlin</author> </authors> <year>2001</year> </book> <book price="24.95"> <title>ASP Unleashed</title> <authors> <author>Walther</author> </authors> <year>1998</year> </book> </books> |
<TREENODES> <treenode text="..."> <treenode text="..."> </treenode> <treenode text="..." /> ... </TREENODES> |
<?xml version="1.0" encoding="UTF-8"?> <TREENODES> <treenode text="Teach Yourself Active Server_u80 ?ages 3.0 in 21 Days"> <treenode text="Price - $34.95" /> <treenode text="Authors"> <treenode text="Mitchell" /> <treenode text="Atkinson" /> </treenode> <treenode text="Year Published - 2000" /> </treenode> <treenode text="Designing Active Server Pages"> <treenode text="Price - $29.95" /> <treenode text="Authors"> <treenode text="Mitchell" /> </treenode> <treenode text="Year Published - 2000" /> </treenode> 〈/TREENODES> |
<form runat="server"> <ie:TreeView runat="server"> <ie:TreeNode runat="server" Text="ASP.NET Books" Expanded="True" TreeNodeSrc="aspnetbooks.xml" /> </ie:TreeView> </form> |
<form runat="server"> <ie:TreeView runat="server"> <ie:TreeNode runat="server" Text="ASP.NET Books" Expanded="True" TreeNodeSrc="aspnetbooks.xml" TreeNodeXsltSrc="aspbooks.xsl" /> </ie:TreeView> </form> |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:template match="/books"> <TREENODES> <xsl:for-each select="book"> <treenode> <xsl:attribute name="text"> <xsl:value-of select="title" /> </xsl:attribute> <treenode> <xsl:attribute name="text"> Price - $<xsl:value-of select="@price" /> </xsl:attribute> </treenode> <treenode text="Authors"> <xsl:for-each select="authors/author"> <treenode> <xsl:attribute name="text"> <xsl:value-of select="text()" /> </xsl:attribute> </treenode> </xsl:for-each> </treenode> <treenode> <xsl:attribute name="text"> Year Published - <xsl:value-of select="year" /> </xsl:attribute> </treenode> </treenode> </xsl:for-each> </TREENODES> </xsl:template> </xsl:stylesheet> |
<xsl:attribute name="text"> <xsl:value-of select="title" /> </xsl:attribute> |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者