2006年3月17日 星期五

XML

Take a look at islandwide temperatures of Taiwan.

What happens if you just want Taoyuan's temperature?

If you want to include Taoyuan's temperature in your Theme
Park homepage, is there any solution?

XML examples:

the need of XML



  • Separation of data from data processor
  • Seperation of data from presentation

    • HTML for machine-human interaction
    • XML can be formatted to HTML according to formartting rules called XSLT. To see it, do Lab XSLT.



  • Automation of data flow across various business systems

    • XML for machine-machine interaction
    • Without human involvement, automation of business systems can be accelerated.
    What kind of language is XSLT?
    • An XSLT style sheet is an XML document.
    • The basic processing paradigm is pattern matching.


    Operation of an XSLT Processor



    Lab Google Mars

    1. Observe how Google Mars loads the map and does the zooming. Is the data downloaded once
    for all or retrieved on demand?

    2. HTML alone cannot perform the functions of Google Mars. So find out which code in the HTML
    source does the map things.

    Hints: You may use Nvu to determine what HTML tags are for what.

    2006年3月3日 星期五

    3-10-2006 Work with HTML

    Introduction to Hypertext, HTTP

    HTML

    Making webpage accessible

    Lab Subscription with RSS

    RSS is Really Simple Syndication.

    1. Open Firefox
    2. Enter Ctrl-B to activate Bookmark.
    3. Go to http://news.yam.com
    and look for the subscription button at the right of URL bar.
    4. Make the subscription step by step.
    5. Take a look at the Bookmark at your left. Open the Yam News and start browsing news pieces.

    Lab Webpage Accessibility

    Use Nvu to edit the following homepage
    at http://maplepoem.blogspot.com/2005/03/blog-post_111070085865304732.html

    1. You can copy and paste the content to your Nvu.

    2. Take a look at the HTML 標籤, HTML 原始碼

    3. Save your editings and preview your webpage using Firefox

    4. Create a clickable link at the term 中原大學 so that
    this link goes to http://www.cycu.edu.tw

    5. Make the webpage accessible by
    (1) adding ALT text to the images and
    (2) adding a title to the URL link at Step 4.

    6. Take a second look at the HTML 標籤, HTML 原始碼
    Look for the differences you have made after doing Step 4 & Step 5.

    7. Save your editings again and preview your webpage using Firefox

    8. Download web accessibility validator Freego

    9. Use Freego to examine whether your webpage is accessible.
    須通過第一級機器檢測

    Homework 3-3-2006

    "tell me and I'll forget; show me and I may remember; involve me and I'll understand"

    1. What is NAT (Network Address Translation) ? How does Skype overcome NAT and get connected with each other?

    2. Explain scalability. What is the scalability design inside Skype?

    3. Do the following 2 labs.

    Lab Clean Language

    Lab Tongwen

    4. Reading Assignments:
    Pages 181~194 of the Textbook.

    Bring the Textbook to the class on 3-10-2006.
    (下次上課請攜帶課本)

    Cookie

    Lab Accessibility by GreaseMonkey

    1. Google Search Keys Numbers the results in a Google search page and you can type the corresponding number to follow the link. Updated: 2005-04-26. more
    2. Google Access Keys Enables navigation through Google search results using ALT-"," and ALT-".". more

    3. AccessBar: displays defined accesskeys in a fixed-position bar along the bottom of the window. Added 2005-04-01 (not a joke). Find how many access keys have been defined at www.ocac.gov.tw www.epa.gov.tw
    4. Continued from 3, use google to find 3 more government sites in Taiwan that enable access keys.