
Loading an XSL Stylesheet into a Java Application
Often, XML documents specify XSL stylesheets in an xml-stylesheet processing instruction. One easy way to load this stylesheet into a Java application is to use the TransformerFactory.getAssociatedStylesheet method. Though this method requests four arguments, it’s enough to know the name of the XML document (which is the first argument). The