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 her.
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 was to create a dummy… Continue reading Validating XPath expressions against XML schema
Reading Interoperability Wars – Episode 6 – Part 1 – Revenge of Babble just made me want to create a blog post with this title.
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… Continue reading Is required in or not?
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 the default namespace.… Continue reading XSLT hacker
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 tidy to convert… Continue reading Creating an Atom feed from a web page
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 it’s so simple that I… Continue reading A generic XML visualization with Graphviz?
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 is worth reading. The… Continue reading Apache Ant is regrettably (?) using XML