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.
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.
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.
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.
Lab 34 XML
XML就是延伸標記語言, 是用來描述資料的一種標記語言. 雖然現在整體的標準還有一點點變數, 但是他對於未來的文件上技術層面的影響是十分令人期待的.XML的全名是Extensible Markup Language, 也就是延伸標記語言. XML和HTML一樣都是一種標記語言, 利用標籤來定義各種屬性.
HTML的使用目的是排版資料, 修改資料的顯示; XML的使用目的則是描述資料.
甚麼是XSLT(eXtensible Style Language Transformation)?
- XSLT並不是在顯示XML元素內容, 只是將XML元素轉換成其他文件的格式.
- 透過XSLT處理器(XSLT Processor)將XML文件依照Template-Driven的轉換Script程式碼來產生轉換結果.
- XML文件能轉換成一樹狀結構, XSLT就是將一棵XML樹, 套用XSLT轉換成Template Tree, 再修改一些節點的架構, 最後產生另一棵不同架構的樹狀結構.
2012年12月3日 星期一
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.
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.
2012年12月2日 星期日
Homework 11/26/2012
1. 在時速300km/h的高鐵上如何提供上網,2G, 3G, 4G, Wi-Fi可行嗎? 試提出可行之道。
WIFI的傳輸率最高可達54 Mbps,傳輸範圍最遠約一百公尺,然而時速最高120 km/hr時,並不可能每隔100公尺就設一個基地台,因此無法使用wifi,2G訊號勉強可傳輸,然而3G、4G更無法作用在破百之時速,2G、3G、4G和Wi-Fi都無法在高鐵上使用。
可行辦法:使用WiMAX(IEEE 802.16m),其最高速度可接受於350km/hr移動速率,且傳輸資料至少達100Mbps
2. 在高鐵沿線兩側部建Wi-Fi基地台(Access Point),能否解決高鐵上網問題,為什麼?
Wi- Fi和衛星的傳輸速度有其限制,約為2Mbps,行動式WiMAX可提供較大的頻寬,此計畫希望能達到15Mpbs的目標。除了頻寬之外,合勤科技董事長 朱順一從技術角度分析WiMAX優勢:「採用衛星技術,必須在車上架設天線,並且瞄準衛星方位,高速鐵路行進時,位置不斷移動,所以天線必須一直追蹤衛 星,天線的控制、成本昂貴都是問題;另外,因為高速鐵路速度太快,平均幾秒鐘就要切換(Handover)Wi-Fi無線基地台(AP),想要穩定地切換 相當困難,所以WiMAX比較有機會」。然而高鐵不可能在50km內就設定一個基地台,這樣耗費成本太高。依照wifi的傳輸距離,應該不太能解決高鐵上網問題。
WIFI的傳輸率最高可達54 Mbps,傳輸範圍最遠約一百公尺,然而時速最高120 km/hr時,並不可能每隔100公尺就設一個基地台,因此無法使用wifi,2G訊號勉強可傳輸,然而3G、4G更無法作用在破百之時速,2G、3G、4G和Wi-Fi都無法在高鐵上使用。
可行辦法:使用WiMAX(IEEE 802.16m),其最高速度可接受於350km/hr移動速率,且傳輸資料至少達100Mbps
2. 在高鐵沿線兩側部建Wi-Fi基地台(Access Point),能否解決高鐵上網問題,為什麼?
Wi- Fi和衛星的傳輸速度有其限制,約為2Mbps,行動式WiMAX可提供較大的頻寬,此計畫希望能達到15Mpbs的目標。除了頻寬之外,合勤科技董事長 朱順一從技術角度分析WiMAX優勢:「採用衛星技術,必須在車上架設天線,並且瞄準衛星方位,高速鐵路行進時,位置不斷移動,所以天線必須一直追蹤衛 星,天線的控制、成本昂貴都是問題;另外,因為高速鐵路速度太快,平均幾秒鐘就要切換(Handover)Wi-Fi無線基地台(AP),想要穩定地切換 相當困難,所以WiMAX比較有機會」。然而高鐵不可能在50km內就設定一個基地台,這樣耗費成本太高。依照wifi的傳輸距離,應該不太能解決高鐵上網問題。
訂閱:
文章 (Atom)