slide6
XML: The Content - Style Separation
  • A Hypothetical Amazon:  
  • How do we wed Style to XML?
  • <?xml-stylesheet href="common.css" type="text/css"?>
    <?xml-stylesheet href="classic.css" type="text/css"?>
    <?xml-stylesheet href="list.css" type="text/css"?>
    
  • But wait, I smell a bit of HTML in there...
  • <SearchResult xmlns:html="http://www.w3.org/1999/xhtml" ... >
    
  • Using JavaScript and DOM 1 API to manipulate XML (e.g. sorting)
  • parent.removeChild(child);
    parent.insertBefore(child, collection[j]);
    
Honolulu, HI
05/09/02
<< slide5 slide7 >>