Don’t call me DOM

21 April 2005

Links annotater

Filed under:

The Web is a formidable tool to host documentation; nothing new about that.

But documentation, be it on the Web or not, tend to rot when not maintained. Nothing new about that either.

While documentation maintenance is probably better addressed at the social-engineering level, there are tools that can help manage it; namely, a few weeks ago, W3C Systems Team went through the process of cleaning up our internal documentation on processes, tools, services, configurations, etc. that sits on our Team-only Web site, but is too rarely kept up to date with the latest developments.

10 January 2005

Spellchecker code available

Filed under:

I’ve been asked privately whether the code of spellchecker service run on the W3C site was available; it wasn’t, but now it is, along with tidy on-line and HTTP HEAD services code.

The spellchecker uses a fairly simple Python wrapper around aspell, that:

  • allows to pick the language of the document being spell checked – ideally, this would be autodetected in the HTTP headers (Content-Language) and in the HTML document itself (with the lang/xml:lang attributes)
  • presents the errors found, and optionally the possible corrections
  • links to a different form (whose code hasn’t been released yet) to add words in the local dictionary

16 December 2004

Creating nice relative URIs with XSLT

Filed under:

I needed today a way to create nice relative URI paths in XSLT. The point was, given a relative URI A foo/bar/toto, and another relative URI B baz/tutu supposed to be relative to the same base, calculate the URI path from A to B, in this case ../../baz/tutu.

Although it isn’t very complicated, I figured that other people may need this very same facility, since it’s a classical problem when using XSLT e.g. to build a Web site. Plus, I tried to make sure it would generate “nice” paths, for instance avoiding that the path generated to go from foo/bar/toto to foo/baz be ../../foo/baz instead of the simpler ../baz.

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