Fixed autoindex issue

Now autoindex applies only to docbook XMLs