Code example for Templates

Methods: newTransformer

0
    throws MaryConfigurationException 
    { 
    	try { 
    		// startup every time: 
    		startup(); 
        	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