!--a11y-->
Output Properties 
These properties can be set on the transformer to change properties such as indent, XML-declaration, type (XML, HTML, text), and so on. They are the same properties that can be applied to a transformation when using the xsl:output – node in the stylesheet. Only the most important ones will be outlined here. For more information, see the javadoc documentation of the SAP XML Toolkit.
These are predefined strings in the class javax.xml.transform.OutputKeys, which you may set to the transformer using: transformer.setOutputProperty(String name, String value), on an instance of the transformer.
· OutputKeys.VERSION – to control the version of the result document
· OutputKeys.METHOD – can be XML, HTML, text or a namespace-qualified name.
· OutputKeys.ENCODING – sets the encoding of the result. It is very useful if you want to transform one source document in UTF-8 to ISO-8859-1, or any other encoding.
· OutputKeys.DOCTYPE_PUBLIC and OutputKeys.DOCTYPE_SYSTEM – adds a <!DOCTYPE (root-tag) SYSTEM (System_key) (Public_key)> to the result.
· OutputKeys.INDENT – “yes” or “no”. Enables you to control whether or not the result should be indented. In this way you may add indenting to an XML file, by transforming it from a StreamSource to a StreamResult, and setting this OutputProperty to “yes”.
