Two training sessions at XML 2007

I have been selected to present two back-to-back training sessions at the XML 2007 conference in Boston in December: except, for, some, ne, \w, xsl:function: XSLT 2.0 for XSLT 1.0 practitioners and Testing XSLT.

The first one will, as the title says, be for people who know XSLT 1.0 and want to transition to using XSLT 2.0, and the second one will be a more practical expansion of the material covered in my XTech 2007 talk, My Stylesheet Runs, But….

Windows drive names with Cygwin xsltproc & xmllint

Cygwin may be the only way to stay sane while using Windows, but it has its own Unix-like notion for drive names, e.g., “/cygdrive/c/” instead of “c:“. Which is fine, except when you want to use both Java XML tools, which understand only the “c:” form, and Cygwin tools, which tend to understand only the “/cygdrive/c/” form.

The Cygwin xsltproc and xmllint complain when you use them with files containing Windows drive names in system identifiers, so the second time it happened, I wrote a simple XML catalog file to map the Windows drive names to the Cygwin paths.

Put this as the contents of /etc/xml/catalog (not catalog.xml!) and the Cygwin xsltproc, etc., will handle Windows drive names:

<?xml version="1.0"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteSystem
systemIdStartString="file:///C:/"
rewritePrefix="file:///cygdrive/c/"/>
</catalog>

You will have to add a suitable rewriteSystem for each additional drive that you use.

Signs of the long-term Tokyo resident

In a week in Tokyo, I observed these signs that a foreigner may be a long-term resident:

  • Carries an umbrella on the same days as everyone else
  • Uses a “Suica” smartcard instead of individual tickets on JR trains
  • Carries a flip-style phone (though may not spend entire train trips sending and receiving messages, as many Japanese do)
    • Extra points are awarded for having trinkets dangling from the phone

My camera’s battery is flat, there’s nothing for me here

In Tokyo for the W3C Japanese Layout Taskforce meeting, I went to the first day of the Sumo basho with a friend. Firstly, I was amazed by the number of foreigners in the audience (as opposed to the number of foreigners competing), and secondly I was flabbergasted when one North American told his friends just as the top division was getting started that he was going to leave because his camera battery was going flat.

Whatever happened to experiencing something for its own sake? Is the experience only real if you can take photos of it? Is it only real if you can put photos of it on your social networking site? What about just staying with your friends while you all watch something unique to the country you are visiting and that you may never see again?