Code example for Templates

Methods: newTransformer

    throws MaryConfigurationException 
    	try { 
    		// startup every time: 
        	transformer = stylesheet.newTransformer();
    	} catch (Exception e) {
    		throw new MaryConfigurationException("Cannot initialise XML writing code", e);
    // Methods 
    /** Start up the static parts, and compile the normalise-maryxml XSLT 
     *  stylesheet which can then be used by multiple threads. 
     *  @exception TransformerFactoryConfigurationError 
     *      if the TransformerFactory cannot be instanciated. 
     *  @exception FileNotFoundException 
     *      if the stylesheet file cannot be found. 
     *  @exception TransformerConfigurationException 
Experience pair programming with AI  Get Codota for Java