Categories
Uncategorized

XML::Schematron

As I mentioned earlier, I’ve been updating XML::Schematron. It’s been a few years since the last release and it doesn’t support Schematron 1.5, let alone ISO Schematron.

So, I started hacking on it. Initially, it was to add support for XML::SAX, as a modern XML parsing system, instead of the old PerlSAX (which didn’t really understand namespaces). But then I added support for using XML::LibXML as well. And then I realised that the examples I was using had abstract tests, which weren’t supported, so I added that. And the name element didn’t work, so that got fixed. Just now, I’ve added support for namespace declarations in the ns element. It’s a lot more useful now than it was.

Now I just need to get these changes back to the maintainer, Kip Hampton. Alas, he seems to be away from his email recently. But all the changes are in my repository, so it should be easy to pass them on later as they’re unlikely to get lost. I hope these changes actually makes it back on to CPAN; they’re useful and should make schematron more readily available in Perl, which has got to be a good thing.

Categories
Uncategorized

Brighton Kite Festival

Yesterday we visited the Brighton Kite Festival. I took photos and put the set on flickr. But this one was definitely my favourite:

A huge long snake kite.

That kite was probably 15m or longer. A huge snake like thing, it towered over Stanmer park and lit up the sky with its colours.

Categories
Uncategorized

XML Schema

I’m looking heavily at schematron at the moment for work. It’s a fascinating tool, in contrast to the usual style of XML validation: DTD, RelaxNG and XML Schema.

Generally, from what I’ve seen of XML Schema, they are to be avoided. But then I saw these messages from Rick Jellife indicating how even the vendors are getting upset with XML Schema. I’m glad my instincts to avoid it after first looking are paying off…