XML入门指南(9)使用XSL来显示XML数据
来源:互联网 发布:颜值高却 知乎 编辑:程序博客网 时间:2024/05/21 07:59
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
使用XSL可以给XML文档添加上显示信息。使用XSL来显示XML文档
XSL (全称是:可扩展的样式单语言,the eXtensible Stylesheet Language)比CSS样式单功能要强大的多。XSL的一个主要的用途就是将XML文档转换成HTML格式的文件,然后再交付给浏览器,由浏览器显示转换的结果:
如果你有网景6或者IE 5(或者更高的版本),你可以观看the XML file and the XSL style sheet.
在IE6中的显示结果:View the result in IE 6
在IE5中的显示结果:View the result in IE 5
注意下面的代码片断中的第二行:
<?XML version="1.0" encoding="ISO-8859-1"?> <?XML-stylesheet type="text/XSL" href="simple.XSL"?> <breakfast_menu> <food> <name>Belgian Waffles</name> <price>$5.95</price> <description> two of our famous Belgian Waffles </description> <calories>650</calories> </food> </breakfast_menu>
如果你想了解更多关于XSL的知识,请阅读我们的XSL 指南。
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script><script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- XML入门指南(9)使用XSL来显示XML数据
- XML入门指南(9)使用XSL来显示XML数据
- XML入门指南(8)使用CSS来显示XML
- XML入门指南(8)使用CSS来显示XML
- 什么是XML(2)----使用XSL来显示XML文档
- 使用XSL样式表来显示XML文件
- xml/xsl(1):简单使用XSL显示XML样例
- jaxb jaxp使用xml来生成动态页面 - xml xsd xsl ( xpath xslt ) css 概念入门
- XML的显示--XSL
- 何不试试使用xsl+jsp+xml+taglibs来实现web显示层!
- XML入门指南(10)XML数据岛
- XML入门指南(10)XML数据岛
- 利用XSL对XML中的数据进行数据显示之一
- xml 使用 xsl
- XML入门指南(2)如何使用XML
- XML入门指南(2)如何使用XML
- PKM2数据导出的xml显示用的XSL
- XML+XSL在表格中显示数据的主要程序
- 深入Scripting Runtime Library 之一
- XML入门指南(10)XML数据岛
- 用VB编写网络寻呼机(1)
- XML入门指南(11)XML解析器
- 基于Winsock 的小型网络管理系统及其实现
- XML入门指南(9)使用XSL来显示XML数据
- 怎样手工声明API
- XML入门指南(8)使用CSS来显示XML
- 如何在IE右键菜单中添加菜单项以及如何添加IE任务栏按
- XML入门指南(7)XML浏览器
- 用VB设计能适应各种显示属性的界面
- vb开发通信软件
- VB调用API函数使窗口保持在最上层
- 常见问题:自动调整窗口内控间的大小