Steve: November 2007 Archives

I needed to put a time-stamp in a file I was generating with XSLT and Saxon. Saxon supports parts of EXSLT, and one of the parts supported is date:date-time. It's kind of challenging to figure out exactly how to make it work, though, at least it was for me. In hopes that I'll save someone else some work, here's how to add a time-stamp using Saxon 6.5.5.

<?xml version="1.0" encoding="UTF-8"?>
  <xsl :stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:saxon="http://icl.com/saxon"
    xmlns:exsl="http://exslt.org/common"
    xmlns:date="http://exslt.org/dates-and-times"
    xmlns:func="http://exslt.org/functions"
    extension-element-prefixes="saxon exsl date func">

 <xsl:template match="/">
  Date-time: <xsl :value-of select="date:date-time()"/>
  Date-year: <xsl :value-of select="date:year()"/>
  Date-month-in-year: <xsl :value-of select="date:month-in-year()"/>
 </xsl:template>
</xsl>

I hope that helps someone.

Helen Cadicott Lecture at Berkeley

| | Comments (0) | TrackBacks (0)

I downloaded a track from the iTunesU UC Berkeley Politics and Policy area. It's a recording of Helen Caldicott titled "The New Nuclear Danger".

While I don't agree with everything she said, or the way she said it (for example, while I am no Ronald Reagan fan, does it do any good to describe his as being a capable chicken farmer, but not capable of being president?), if you listen to her lecture and don't feel like our world is a scary place, and we're letting people like the current administration make things worse by our inaction, then you are completely close minded.

I found a YouTube clip of the lecture. I haven't watched it, but since I don't know how to link to an iTunes clip, I'll use that link instead.

Heck, I'll even try to embed it - it's split into 4 parts.

iTunesU

| | Comments (0) | TrackBacks (0)

In the iTunes store, you can find a ton of university lectures by looking at iTunesU. If you haven't looked at it, you need to. There are a wide range of lectures and interviews, and they are all free.