The attached patch fixes electric slash so it doesn't
get confused about the XML declaration, or any embedded
DOCTYPE or ENTITY stuff. For example:
<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp "&#160;">
]>
Electric slash fix