2012年12月17日 星期一

Lab 35 XML (2)


1. Register and Download Xray, an XML, XSLT editor and processor.

2. Given the 
Listing 1. An XML document representing the results of a soccer tournament

Listing 2. A basic style sheet for the soccer results

use the XSLT as in the Listing 2 to transform the XML file as in the Listing 1.
(archive)

3. View the formatted HTML file.

Results of Group A

Brazil versus Scotland

Played on 10-Jun-1998
Result: Brazil2, Scotland1

Morocco versus Norway

Played on 10-Jun-1998
Result: Morocco2, Norway2

Scotland versus Norway

Played on 16-Jun-1998
Result: Scotland1, Norway1

Brazil versus Morocco

Played on 16-Jun-1998
Result: Brazil3, Morocco0

Brazil versus Norway

Played on 23-Jun-1998
Result: Brazil1, Norway2

Scotland versus Morocco

Played on 23-Jun-1998
Result: Scotland0, Morocco3


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


compute the team standings in a table.

5. View the formatted HTML file.

Results of Group A

TeamPlayedWonDrawnLostForAgainst
Brazil320163
Scotland301226
Morocco311155
Norway312054



Q:請描述至少一個你做這個lab所遇到的問題,並且你是如何解決這個問題的。

DEBUG程式碼花了一點時間

沒有留言:

張貼留言