For xsl Transformation I am using this interface: javax.xml.transform.Transformer
The implementation is saxon.jaxp.TransformerImpl
I need to make this Transformer safe for XML External Entity (XXE) Attacks. Right now if there is an external entity it gets called and could be used for denial of Service Attack.
Is there a way to configure the Transformer ? I know how to do it with the saxon Parser but I only have the Transformer class and I do not know how to get the Parser out from it.