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.






問題 Listing3 有錯誤 找很久  發現是小於符號被誤判成結束括號  之後的問題是小於符號<另一種打法是 &lt;

Lab 36 Syndication with RSS 2.0



問題一開始不知道是把網址打進去  後來知道了

Lab 34 XML

what is XML?

可延伸標記式語言英語eXtensible Markup Language,簡稱:XML),是一種標記式語言。標記指電腦所能理解的訊息符號,透過此種標記,電腦之間可以處理包含各種訊息的文章等。如何定義這些標記,既可以選擇國際通用的標記式語言,比如HTML,也可以使用像XML這樣由相關人士自由決定的標記式語言,這就是語言的可延伸性。

 what is XSLT?

可擴展樣式表轉換語言Extensible Stylesheet Language Transformations,簡稱XSLT)是一種對XML檔案進行轉化的語言

3. Given the the XML file and XSLT file ,
use Xray to do the transformation of the XML into HTML.
You have to replace [ with <.





問題  一開始按transform都沒有反應  後來發現有個中括號沒改成大於小於符號

2012年12月3日 星期一

Lab 31 Programming in DOM

1. Open KompoZer
2. Based on the code as in

http://www.scottandrew.com/weblog/articles/dom_4 ,
write a code to generate the table of 9*9 products. (九九乘法表)

Hint: The javascript code should be enclosed by script tags.


Lab 30 Create Image using DOM

1. Open KompoZer
2. Hand code a javascript that loads an image from Internet based on
the DOM model.
3. Take a look at the sample code that shows how window.onload to load the image.
4. Use a button to load the image. Try how onclick works.

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


一開始出現的問題是連圖片跟按鈕一起出現
後來發現是程式碼打錯  經過修正後就好了

Lab 29 Hand code a form




Before you do this lab, you must understand what is CGI(Common Gateway Interface)  and Form.

1. So please search the answer and post your opinion in your blog.
2. Hand code a HTML or use KompoZer to edit an HTML so that the webpage can send a request to Google like
http://maps.google.com/maps?q=24.9586,+121.24114

Use Form CGI that includes action, input, and submit.
Try a few different coordinates.


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



發現用記事本比較好處理  用軟體感覺很複雜

Lab 28 Lab Form and Action

修改成POST


POST跟GET的差異
難處在於一開始不知道要幹嘛  經助教指點才了解

Homework 11/26/2012


1. 在時速300km/h的高鐵上如何提供上網,2G, 3G, 4G, Wi-Fi可行嗎? 試提出可行之道。

Wi-Fi是屬於定點式的上網模式,最高速度限制有在30km/h所以不在考慮範圍,而3G跟4G上網也只能在時速不到100公里接收不符合需求,2G上網可以容許時速120公里的速度,上網速度相對極慢,況且高鐵時速300公里,以上都不符合需求。

解決方法有WiMAX技術,可容許時速305公里的速度,傳輸資料量也較大,目前還沒有較完善方案,另外也可以在每個車廂獨立設置Wi-Fi基地台,但相對成本會拉高。


2. 在高鐵沿線兩側部建Wi-Fi基地台(Access Point),能否解決高鐵上網問題,為什麼?

Wi-Fi是屬於定點式上網,並透過認證登入的方式取的網路資源,再高速移動中他無法立刻切換到下一個基地台,無法維持一個正常持續的上網狀態。