DOMSource was used because I was parsing the XSL header to determine if the stylesheet is version 1.0 or 2.0.  Once upon a time I was trying to use both Xalan and Saxon depending on the version of the source stylesheet. As of today, Xalan isn't being used and Saxon is required, so I'll go and refactor that code to use StreamSource.   Thanks for the tip.