The following figure shows the general procedure for creating a sample program that uses the XSLT transformer.
Figure 5-6 General procedure for creating a sample program that uses the XSLT transformer
![[Figure]](figure/zu050600.gif)
- Get the TransformerFactory instance.
Get the TransformerFactory instance using the newInstance method.
- Create a Transformer object.
- Transform into HTML data.
Transform the XML document into HTML data by using the Transformer object.