intermediate mkdir when generating XHTML