標籤

HOMEWORK (9) LAB (30)

2013年6月17日 星期一

Lab 31 XML


XML :可延伸標記式語言,是一種標記式語言。標記指電腦所能理解的訊息符號,透過此種標記,電腦之間可以處理包含各種訊息的文章等。如何定義這些標記,既可以選擇國際通用的標記式語言,XML是從標準通用標記式語言(SGML)中簡化修改出來的。它主要用到的有可延伸標記式語言、可延伸樣式語言(XSL)、XBRL和XPath等。

XSLT:可擴展樣式表轉換語言(Extensible Stylesheet Language Transformations,簡稱XSLT)是一種對XML檔案進行轉化的語言,XSLT中的T代表英語中的「轉換」(transformation)。它是XSL(Extensible stylesheet language)規範的一部分。


Lab 32 XML (2)

Given the
Listing 1. An XML document representing the results of a soccer tournament
Listing 3. A style sheet that computes team standings
錯誤版

                                          
正確版




Given the 
Listing 1. An XML document representing the results of a soccer tournament
Listing 2. A basic style sheet for the soccer results


Lab 33 Syndication with RSS 2.0