I recently missed the 10th birthday of XML

Friday, February 15th, 2008

The birthday on February 10th was celebrated with a blog post about the XML People. I'd like to add that XML is something like an eccentric coworker who manages to get entangled in everyone else's work, either by invitation, pushed from above, or sneaked in by someone who knows him or ...

Validating XPath expressions against XML schema

Friday, February 15th, 2008

I have come across a situation where I want to make sure that an XPath expression is valid for querying a document that conforms to a specific XML Schema. My first thought was: this must have been done before and I started googling. I found some discouraging discussions. One approach ...

RESTafari

Monday, February 11th, 2008

Reading Interoperability Wars - Episode 6 - Part 1 - Revenge of Babble just made me want to create a blog post with this title.

Is <xsl:text> required in <xsl:message> or not?

Friday, January 25th, 2008

In an XSLT script I didn't use <xsl:text> inside of <xsl:message>. It worked fine in xsltproc, but the Java XSLT implementation we use complained. What was wrong then? The text in an <xsl:message> was not inside an <xsl:text> element. Bad code: <xsl:message>Don't do like this</xsl:message> Good code: <xsl:message><xsl:text>Do like this</xsl:text></xsl:message> To avoid making the same ...

XSLT hacker

Wednesday, January 16th, 2008

So far, this week has been a week of XSLT hacking. My favorite is probably the XSLT script that generates another XSLT script! :-) At one point I wanted to copy the default namespace (xmlns=...) from the source document to the destination document. I did like this to retrieve the URI for ...

Creating an Atom feed from a web page

Sunday, January 13th, 2008

Most of my time at the computer yesterday was spent working on an unofficial syndication of the broadcast archive for the Swedish radio show P3 Rytm. It's actually quite simple... :-) Use curl to download the web page broadcast archive for the show Use iconv to convert the page to UTF-8 Use ...

A generic XML visualization with Graphviz?

Wednesday, January 9th, 2008

Why can't I find an XSLT file that that converts any XML file to a Graphviz DOT file that visualizes elements and attributes? It's almost like I'm beginning to doubt my Google "skillz"! I've found some scripts that are specially targeted to various XML-based formats, but no generic one. Maybe ...

Apache Ant is regrettably (?) using XML

Thursday, December 13th, 2007

I've done some Apache Ant build file hacking today and that made me recall that the original author of Ant, James Duncan Davidson, actually regretted using XML as the file format. Mysteriously missing from today's world wide web, but fortunately captured by the Wayback Machine, the blog entry Ant and XML ...