on the one hand, the lower case language tag is improper syntax when using any of the XML based document types, XML Is case sensitive.
by using an xhtml document type you are forcing tag case sensitivity.
on the other hand, the case of the document tag should cause the extensions to crash. I have logged this as a bug in our bugbase.