AJAXLink – Part IV

Web-Based Publishing (INFO 290-19)

Erik Wilde, UC Berkeley School of Information
2007-02-22
Creative Commons License

This work is licensed under a Creative Commons
Attribution-NonCommercial-ShareAlike 2.5 License.

Abstract

AJAXLink and XLink offer a lot of opportunities and also a lot of places where design decisions need to be made. In this lecture, some of these design decisions are discussed, so that the design process and the implementation decisions can start with less uncertainties. While in some cases it simply is necessary to decide whether a certain feature should be supported or not, in other cases different strategies can be chosen to implement a feature.

Outline (Design Decisions)

  1. Design Decisions [9]
    1. XLink Subset [6]
    2. XLink Visualization [2]
  2. Design Considerations [2]
  3. Conclusions [1]

Option Paralysis

Option Paralysis: The tendency, when given unlimited choices, to make none.

Douglas Coupland, Generation X: Tales for an Accelerated Culture, St. Martin's Press, 1991

Outline (XLink Subset)

  1. Design Decisions [9]
    1. XLink Subset [6]
    2. XLink Visualization [2]
  2. Design Considerations [2]
  3. Conclusions [1]

XLink Design Space

Traversal Attributes

Behavior Attributes

Semantic Attributes

Supported Media Types

HTML Fragments

Outline (XLink Visualization)

  1. Design Decisions [9]
    1. XLink Subset [6]
    2. XLink Visualization [2]
  2. Design Considerations [2]
  3. Conclusions [1]

Yahoo! UI Library

                oMenu.addItems([
                        { text:"Homepage", url:"http://dret.net/netdret" },
                        { text:"CV", url:"http://dret.net/netdret/cv" }
                    ]);
  <p>This is a paragraph with <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="extended"><home xlink:type="locator" xlink:label="Homepage" xlink:href="http://dret.net/netdret"/><cv xlink:type="locator" xlink:label="CV" xlink:href="http://dret.net/netdret/cv"/><resource xlink:type="resource" xlink:label="period" xlink:href="kisling.xml"><span id="menutoggle" style="background : #F6F7EE">an XLink pointing to both</span></resource></link>.</p>

Menus vs. HTML

Outline (Design Considerations)

  1. Design Decisions [9]
    1. XLink Subset [6]
    2. XLink Visualization [2]
  2. Design Considerations [2]
  3. Conclusions [1]

Creating XLinks

Two Local Anchors

  <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="extended">
   <desc xlink:type="locator" xlink:href="#little-bear"/>
   <img xlink:type="locator" xlink:href="../img/south-hall-portal.jpg#rect=(178,117,20,20)"/>
  </link>
  <img src="../img/south-hall-portal.jpg" alt="South Hall Portal"/>
  <p>Finally, South Hall is the home of <span id="little-bear">the smallest bear on the UCB campus</span>, which often causes flocks of tourists to stare at the building, led by eager blue-yellow clad tourist guides.</p>

Outline (Conclusions)

  1. Design Decisions [9]
    1. XLink Subset [6]
    2. XLink Visualization [2]
  2. Design Considerations [2]
  3. Conclusions [1]

Design Work