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-1998Result: Brazil2, Scotland1
Morocco versus Norway
Played on 10-Jun-1998Result: Morocco2, Norway2
Scotland versus Norway
Played on 16-Jun-1998Result: Scotland1, Norway1
Brazil versus Morocco
Played on 16-Jun-1998Result: Brazil3, Morocco0
Brazil versus Norway
Played on 23-Jun-1998Result: Brazil1, Norway2
Scotland versus Morocco
Played on 23-Jun-1998Result: 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
Team | Played | Won | Drawn | Lost | For | Against |
Brazil | 3 | 2 | 0 | 1 | 6 | 3 |
Scotland | 3 | 0 | 1 | 2 | 2 | 6 |
Morocco | 3 | 1 | 1 | 1 | 5 | 5 |
Norway | 3 | 1 | 2 | 0 | 5 | 4 |
Q:請描述至少一個你做這個lab所遇到的問題,並且你是如何解決這個問題的。
DEBUG程式碼花了一點時間
沒有留言:
張貼留言