DIV CSS 佈局教程網

XSLT介紹
編輯:XML詳解     

 XSLT is a language for transforming XML documents into XHtml documents or to other XML documents.

  XSLT是一種把XML文件轉換成XHtml文檔或者其他的XML文檔的語言。

  XPath is a language for navigating in XML documents.

  XPath是一種由於操作XML文檔的語言。

  What You Should Already Know

  學前基礎

  Before you continue you should have a basic understanding of the following:

  如果你想繼續下面的學習,你必須得掌握下面的一些基本常識。

  HTML / XHtml

  XML / XML 命名空間

  XPath

  If you want to study these subjects first, find the tutorials on our Home page.

  如果你想要先學習這些課題,那請在知識庫找到這些教程.

  What is XSLT?

  什麼是XSLT?

  XSLT stands for XSL Transformations

  XSLT代表XSL轉換(XSL Transformations)

  XSLT is the most important part of XSL

  XSLT是XSL最重要的部分

  XSLT transforms an XML document into another XML document

  XSLT可以把XML文檔轉換成另一個XML文檔

  XSLT uses XPath to navigate in XML documents

  XSLT通過XPath操作XML文檔

  XSLT is a W3C Recommendation

  XSLT是一種W3C參考標准

  XSLT = XSL Transformations

  XSLT=XSL轉換(XSL Transformations)

  XSLT is the most important part of XSL.

  XSLT是XSL的最重要的一部分。

  XSLT is used to transform an XML document into another XML document, or another type of document that is recognized by a browser, like HTML and XHTML. Normally XSLT does this by transforming each XML element into an (X)Html element.

  XSLT用於把XML文件轉換成另一份XML文件,或者轉換成另一種被浏覽器所識別的諸如HTML和XHTML類型的文件。通常情況下,XSLT是通過把每個XML元素轉換成(X)Html文件來完成的。

  With XSLT you can add/remove elements and attributes to or from the output file. You can also rearrange and sort elements, perform tests and make decisions about which elements to hide and display, and a lot more.

  通過XSML,你可以從已輸出的文件裡添加/移除元素和屬性。你也可以把元素重新排列和分類,執行測試語句,決定是隱藏還是顯示元素,或者實現其它更多的功能。

  A common way to describe the transformation process is to say that XSLT transforms an XML source-tree into an XML result-tree.

  對於描述轉換過程,可以形象的描述為:XSLT把XML源樹轉(XML source-tree)換成XML結果樹(XML result-tree)。

  XSLT Uses XPath

  XSLT對於XPath的使用

  XSLT uses XPath to find information in an XML document. XPath is used to navigate through elements and attributes in XML documents.

  XSLT通過對XPath的使用來找尋XML文檔中的信息。XPath用於操作XML文件中的元素和屬性。

  If you want to study XPath first, please read our XPath Tutorial.

  如果你想先學習XPath,請先閱讀我們的XPath教程.

  How Does it Work?

  如何使它運行?

  In the transformation process, XSLT uses XPath to define parts of the source document that should match one or more predefined templates. When a match is found, XSLT will transform the matching part of the source document into the result document.

  在轉換過程中,XSLT通過XPath來定義部分應該和一個或更多預定的模板相匹配的源文件。當一個匹配找到後,XSLT將會把相匹配的部分源文件轉換成結果文檔。

  XSLT is a Web Standard

  XSLT是一個網絡標准

  XSLT became a W3C Recommendation 16. November 1999.

  XSLT在1999年11月16日成為W3C參考標准。


XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved