Protect against NPE when the error that p:catch catches doesn't supply an error code
Make sure the xml:base associated with a directory has a trailing slash
Make sure that the in-scope binding for the default namespace never plays a role evaluating the expression associated with a variable
Trailing slash in c:directory was a mistake, I think
Tweak build so that RDF steps are optional