Don’t call me DOM

3 March 2010

Timeline in SVGs

Filed under:

I wrote a year ago an XSLT style sheet that can be handy in creating graphical timelines: it takes a simple XML file describing the said timeline, and turns it into an SVG image.

The XML file should look like:

<timeline>
  <start>2009-01-01</start>
  <end>2009-12-31</end>
  <line>
   <bar><start>2009-01</start><end>2009-05</end><name>Task A.1</name></bar>
   <bar><start>2009-07</start><end>2009-10</end><name>Task A.2</name></bar>

  </line>
  <line>
   <bar><start>2009-01</start><end>2009-08</end><name>Task B</name></bar>
  </line>

</timeline>

And turns it into an SVG timeline that looks like:

Rendering of the XML timeline above

It could use some graphical enhancements, a better SVG markup, and many other improvements, but since I already had a couple of occasions to use it for my own purposes, I’m assuming it might serve as useful inspiration for others who would need something similar.

16 July 2009

Using /etc/xml/catalog with org.apache.xml.resolver

Filed under:

I have just reported the bug in the w3c-dtd-xhtml Ubuntu package that had prevented me from using the Apache XML Catalog resolver to use local XHTML DTDs rather than the on-line ones when using the Saxon XSLT processor.

Hitting the on-line DTDs on every invokation of Saxon unnecessarily burdens the W3C Web site. I had already found guidance on how to use the Apache XML Catalog resolver to avoid that, but it wouldn’t work with the default XML catalog list provided by Ubuntu in /etc/xml/catalog for the XHTML DTDs.

13 February 2009

Synchronizing text and video

After having visited the land of transcription as my first stop in the world of Web video, the next logical step was to look into how this wonderful transcription of my video could be actually shown along with the video.

Transcriber, the tool I used to generate the captions of the video, saves the transcription into its own XML format:

Older entries »

Picture of Dominique Hazael-MassieuxDominique Hazaël-Massieux (dom@w3.org) is part of the World Wide Web Consortium (W3C) Staff; his interests cover a number of Web technologies, as well as the usage of open source software in a distributed work environment.