Use package saxon8.jar

import net.sf.saxon.TransformerFactoryImpl;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.dom.DOMSource;
 
  Document docSource = input("xslt.xsl");
  DOMSource source = new DOMSource(docSource);
   
 TransformerFactory fac = new TransformerFactoryImpl();
 Transformer transformer = fac.newTransformer(source);
 

xslt.xsl like this:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  version="1.0">
</xsl:stylesheet>
 
the problem is:
the xlst processor is 2.0, but the xslt stylesheet is 1.0 ( version="1.0").
there is a warning:
Warning: at xsl:stylesheet of :
  Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
 
However,
I don't want to  change version="1.0"  to version="2.0"
How to solve the warning?