Changed %ns% placeholder to ${htmlnsPrefix} (or the other syntaxes supported by expandDirectives), refs #575