2012年6月4日 星期一

Lab38 XML (2)

此題目及文章來自於 中原大學的耀仁教授的部落格網站 
開啟 XRay應用程式
一、分別將
 Listing 1. An XML document representing the results of a soccer tournament
Listing 2. A basic style sheet for the soccer results
1.程式碼貼上兩個不同的檔案中  第一個檔案存成.xml  第二個檔案存成.xslt
2.再開啟New XSLT Transform第一個空格選擇 .xml檔 第二個空格選擇 .xslt檔
3.再開啟 New HTML View選擇空格中其中一個    成功如圖2


 二、
分別將
Listing 1. An XML document representing the results of a soccer tournament
Listing 3. A style sheet that computes team standings

1.程式碼貼上兩個不同的檔案中  第一個檔案存成.xml  第二個檔案存成.xslt
2. 第二個程式碼  有紅色圓圈中的地方進行修改
3.再開啟New XSLT Transform第一個空格選擇 .xml檔 第二個空格選擇 .xslt檔
4.再開啟 New HTML View選擇空格中其中一個    成功如圖4紅框中

 








沒有留言:

張貼留言