Saturday, June 30, 2007

Error handling extension for XSLT 2.0

I finally wrote a few words about the try/catch extension I wrote for Saxon a couple of months ago (see this and this entries). You can find the project page there: http://www.fgeorges.org/xslt/error-safe/.

I also wrote a first draft of a specification for such an extension. There are some differences between this and the actual implementation for Saxon, but the spirit remains the same. It can be found there: http://www.fgeorges.org/xslt/error-safe/error-safe.html.

I don't know if the EXSLT project is open to extensions for XSLT 2.0. I think that would be worth having an error handling extension defined in such a vendor-neutral project. I'm indeed interested in any comments about this extension and its specification.

Labels: ,

Sunday, June 24, 2007

Relax NG Compact schema for Ant build files

Someone asked a few days ago on the nXML mailing list a question about a schema for Ant build files, in this thread. Steinar Bang came with a schema he generated from a sample Ant build file.

A specific Ant task generated a DTD from the content of this build file, then he transformed it to a Relax NG Compact schema. This is not a rigorous schema, but this would be enough as a basis to edit Ant build files with nXML and get completion.

The schema can be found at: http://www.fgeorges.org/purl/20070624/ant.rnc.

Labels: , ,