XSL 语言

来源:互联网 发布:联想指纹识别软件win7 编辑:程序博客网 时间:2024/05/14 19:39
It started with XSL and ended up with XSLT, XPath, and XSL-FO.
XSL含有三个子语言:XSLT,XPath和XSL-FO。

It Started with XSL
以XSL为开始

XSL stands for EXtensible Stylesheet Language.
XSL代表着可扩充样式表语言(EXtensible Stylesheet Language)。

The World Wide Web Consortium (W3C) started to develop XSL because there was a need for an XML-based Stylesheet Language.
因为基于XML样式表语言的需要,万维网联盟(W3C)开始发展XSL。


CSS = HTML Style Sheets
层叠式样式表(CSS)= HTML样式表

HTML uses predefined tags and the meaning of the tags are well understood.
HTML使用预定的标签,标签的含义比较容易理解。

The <table> element in HTML defines a table - and a browser knows how to display it.
在HTML中,<table>元素定义了一个表格,浏览器知道如何去显示它。

Adding styles to HTML elements is simple. Telling a browser to display an element in a special font or color, is easy with CSS.
给HTML元素定义样式是比较容易的。通过使用CSS,告诉浏览器对特殊字体和颜色的元素进行显示,是非常容易的。


XSL = XML Style Sheets
XSL=XML样式表

XML does not use predefined tags (we can use any tag-names we like), and the meaning of these tags are not well understood.
XML不使用预定的标签(我们可以使用任何我们自己喜欢的标签名字),这些标签的含义比较难以理解。

The <table> element in HTML defines a table - and a browser knows how to display it.
<table>元素可以表示HTML表格,一种设备,或者别的一些东西,因此浏览器不知道如何去显示它们。

Adding styles to HTML elements is simple. Telling a browser to display an element in a special font or color, is easy with CSS.
XSL描述的是如何显示XML文档。


XSL - More Than a Style Sheet Language
XSL-超越样式表语言(More Than a Style Sheet Language)

XSL consists of three parts:
XSL由3部分组成:

  • XSLT - a language for transforming XML documents
    XSLT-转变XML文档的语言。
  • XPath - a language for navigating in XML documents
    XPath-对XML文档进行操作的语言。
  • XSL-FO - a language for formatting XML documents
    XSL-FO - 格式化XML文档的语言。

This Tutorial is About XSLT

针对XSLT的教程

The rest of this tutorial is about XSLT - the language for transforming XML documents.
剩下这部分的教程是关于XSLT的——转换XML文件的语言。

But you can also study our XPath Tutorial and our XSL-FO Tutorial.
同样你还可以学习 XPath 教程 和我们的 XSL-FO 教程.

 
原创粉丝点击