XML,XSD,XSL
2013-04-15 15:00
253 查看
Please describe the different between XML,XSD,XSL through their definition.
XSL 指扩展样式表语言(EXtensible Stylesheet Language)。
XSLT 把 XML 源树转换为 XML 结果树。
XPath 包含一个标准函数库
XPath 是 XSLT 中的主要元素
XPath 是一个 W3C 标准
XSL 指扩展样式表语言(EXtensible Stylesheet Language)。
XSL - 不仅仅是样式表语言
XSL 包括三部分:
XSLT一种用于转换 XML 文档的语言。XPath一种用于在 XML 文档中导航的语言。XSL-FO一种用于格式化 XML 文档的语言。XSLT 把 XML 源树转换为 XML 结果树。
<?xml version="1.0" encoding="ISO-8859-1"?> <catalog> <cd> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <country>USA</country> <company>Columbia</company> <price>10.90</price> <year>1985</year> </cd> . . . </catalog> <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <body> <h2>My CD Collection</h2> <table border="1"> <tr bgcolor="#9acd32"> <th align="left">Title</th> <th align="left">Artist</th> </tr> <xsl:for-each select="catalog/cd"> <tr> <td><xsl:value-of select="title"/></td> <td><xsl:value-of select="artist"/></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet> <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="cdcatalog.xsl"?> <catalog> <cd> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <country>USA</country> <company>Columbia</company> <price>10.90</price> <year>1985</year> </cd> . . . </catalog>
什么是 XPath?
XPath 使用路径表达式在 XML 文档中进行导航XPath 包含一个标准函数库
XPath 是 XSLT 中的主要元素
XPath 是一个 W3C 标准
XPath 在 XSLT 中使用
XPath 是 XSLT 标准中的主要元素。如果没有 XPath 方面的知识,您就无法创建 XSLT 文档。相关文章推荐
- XML,XSD,XSL
- XML,DTD,XSD,XSL的区别
- XML, XSLT, XSD, XPATH, XSL
- XML DTD XSD XSL XDR描述
- ASP.NET中XML、XSD、XSL三者可以同时结合使用
- XML、DTD、XSD、XSL、XSLT
- XML DTD XSD XSL XDR
- ASP.NET中XML、XSD、XSL三者可以同时结合使用
- XML,DTD,XSD,XSL的区别
- (转) XML DTD XSD XSL XDR的区别
- [XML]JAVA解析XSD,并根据选择节点生成XSL
- xsl,xsd,xml制作的类似html的个人简历
- 转!!XML,DTD,XSD,XSL的区别
- jaxb jaxp使用xml来生成动态页面 - xml xsd xsl ( xpath xslt ) css 概念入门
- XML,DTD,XSD,XSL的区别
- xml,xsl,xslt,xsd,uddi,wsdl,soap辨析
- XML,DTD,XSD,XSL的区别
- 笑谈XML,xsd与xsl文件的区别
- XML DTD XSD XSL XDR都有什么区别?
- struts框架下,在jsp页面显示XSL格式化的XML。