stylesheet links in XHTML should be checked case-insensitive

Closes #316. Test included.