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.

30 July 2009

WebIDL checker

Filed under:

A growing number of W3C groups are in the process of developing JavaScript APIs: the HTML Working Group, the Web Applications Working Group, the SVG Working Group, the Geolocation Working Group, and the newly created Device APIs and Policy Working Group of which I am one of the Staff Contacts.

The Web Applications Working Group has been developing a common IDL format to define these APIs, called WebIDL, which basically takes the OMG IDL format and extend it to make it more useful and informative in the context of JavaScript APIs.

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.

« Newer entriesOlder 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.