Flametoad

Words of wisdom from a combustable amphibian.

HiEdWebDev: XML in Higher Ed Websites

Posted Tuesday, October 16th, 2007 at 8:06 am

8:15 session

What

 XML allows us to separate content from design even much more than HTML and CSS.

XML is extensible for all types of data. Unlinke HTML, XML’s purpose is to organize data.

XML is…

  • containment – all data is contained within a tag structure
  • an organization of data – uses tags to organize information
  • user-defined tags – once sets of data have been defined, those tags can be shared among ppl for a common vocabulary. XHTML and RSS feeds are both examples of XML vocabularies. The epub format is another example.
  • display independent – it does NOT describe how data is supposed to be displayed.

XSL

  • It is a XML processing language
  • It is a stylesheet for XML
  • It describes output

XML + XSL = a file that can be read by browsers. However, even better would be to go from from XML + XSL to XSLT, which is  a transformation engine. Using XSLT, you can output to HTML or any other number of formats.

Why

XML lets you…

 

  • Repurpose content – rather than live database hits from your website, you can export data as xml + xsl to get html. Unless you’re amazon or ebay, you probably don’t have data that changes every second. Even if you update your xml every 5 minutes, that’s taking a big load off your database. From there, you can use different xsl to display that xml dataset in different ways. Summarize it on one page, detail on another, etc.
  • Template control – the usage of xsl lets you change the entire presentation of data instantly, just as with css
  • multi-file output – you can use the xslt engine to generate anything from csv, to web page, to PDF, etc.

 

When (to use it)

XML & XSL vs HTML & CSS – XSL is not the same as CSS. Use CSS everywhere, use XSL when you can.

Consider where you have data, such as faculty info, course info, calendar info, events, rss feeds, etc. If info only exists–and only needs to exist– on a web page then XML may be redundent

3 practical uses of XML

 

  1.   RSS feeds – dropping external feeds into your web page. You can sort it, filter it, etc.
  2.   course listings – think of all the way this data could be reused, repurposed if you had access to xml data dumps
  3.   faculty/staff listsings – this could save a lot of database load by moving this to xml.

RSS feed

Comments

No comments yet.

Sorry, the comment form is closed at this time.

Recent Posts

Monthly Wisdom

Older Wisdom

February 2012
M T W T F S S
« Jan    
 12345
6789101112
13141516171819
20212223242526
272829  

About Flametoad

Flametoad is the personal website for Preston DuBose, a full-time e-commerce and credit card security professional for the higher-education market, a part-time RPG publisher, and a full-time husband and father.

I ignore conventional blogging wisdom and refuse to focus on a single topic. This website covers gaming, family life, marketing, security, literature, music, and just about anything else shiny that catches my eye.

Do you think I might be your long lost nephew, to whom you'd like to bequeath your vast financial empire? Find my e-mail address and read more of my bio on the About Flametoad page.

I get a small thrill every time someone bothers to respond to one of my posts. I get a big thrill when you post naked pictures of yourself. Well, not YOU.

Books I Own

Copyright © Flametoad. All rights reserved. Theme developed with the help of the WordPress Theme Generator.