Slim Pages

I’m experimenting with a slim page version of this site. Slim Pages are slimmed down versions of standard web pages. The basic rules are:

  1. Slim Pages are a subset of XHTML strict. They cannot contain script/noscript elements, style attributes nor any of the event attributes such as onclick.
  2. The body tag can only contain div tags of class “entry” and an id attribute providing a site-unique identifier for the entry the div contains.
  3. The entry divs contain a h1 heading as the first tag. The heading contains a link to the permalink for the entry. The link text is the title for the entry.
  4. The heading is followed by another div with a class of “content” which contains the content of the entry.

That’s it. Here’s an example:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <base href="http://internetalchemy.org/" />
  <title>Internet Alchemy</title>
  <meta name="author" content="Ian Davis" />
  <meta name="copyright" content="Copyright (c) 1999-2004 Ian Davis" />
  <meta name="description" content="Digital explorations and experiments" />
 </head>
 <body>
  <div class="entry" id="entry810">
   <h1>
    <a href="http://internetalchemy.org/2004/09/more-comment-spam">More Comment Spam</a>
   </h1>
   <div class="content">
    <p>
     I'm still getting comment spam, despite the posting timeslot
     idea. Obviously the assumptions I made there were unsound.
     So, here's the supplement that might raise the bar a little. If
     you want to comment on an entry here, you now have to
     enter a particular word of a well known quotation. If you
     don't or enter the wrong word then you get locked out for 10
     seconds (a standard WordPress feature).
    </p>
   </div>
  </div>
 </body>
</html>

Because it’s XHTML it has all kinds of nice properties such as being viewable on smartphones and PDAs. It prints nicely if all you want is the content and it can be styled using CSS. It’s readable by ordinary people with a web browser. The tags it uses are pretty well known by every web developer so it’s quite easy to write, perhaps even using an off the shelf authoring program. All the meta and link conventions in HTML headers such as geo location work too. It can be transformed using XSLT into any flavour of RSS or Atom although there are less programs that understand those formats than understand Slim Pages.

It has a regular entry structure, which means you could aggregate it and because the id attributes are site-unique, the aggregator can work out when something new is posted.

Slim Pages are just the content without the candy. Some people like candy, some don’t. Now you can choose :)

About Ian Davis

British entrepreneur and CEO of Kasabi. Primary interests are open data, the semantic web and decentralization.
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

3 Responses to Slim Pages

  1. Phil Wilson says:

    Is there any actual reason why they’re XHTML? Saying “Because it’s XHTML it has all kinds of nice properties such as being viewable on smartphones and PDAs” can’t be the only reason because you’d be able to see it exactly the same if it was HTML (so long as your PDA isn’t more than about 18 months old I guess).Isn’t there also some overlap between this and a styled version of your per-entry RSS feed?

  2. Phil Wilson says:

    gah! no auto paragraphs!

  3. Ian Davis says:

    I’m specifying XHTML because you can then transform it into other formats using XSLT. It’s a tradeoff. HTML is easier to write because pragmatic folks don’t expect HTML to be valid – a vanishingly small percentage of sites use valid HTML. Specifying HTML would have the advantage of not setting expectations about parseablilty or validity. That’s its disadvantage too. The tradeoff in specifying XHTML is some amount of editing on the author’s part to produce well-formed and valid XHTML.(Sorry about the paras. I’ll look into fixing that.)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s