All Downloads are FREE. Search and download functionalities are using the official Maven repository.

msv.tahiti.src.com.sun.tahiti.util.xml.XSLTUtil Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
/*
 * @(#)$Id: XSLTUtil.java 923 2001-07-20 20:45:03Z Bear $
 *
 * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the proprietary information of Sun Microsystems, Inc.  
 * Use is subject to license terms.
 * 
 */
package com.sun.tahiti.util.xml;

import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.sax.TransformerHandler;
import javax.xml.transform.sax.SAXTransformerFactory;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.stream.StreamResult;

/**
 * utility methods for XSLT related tasks.
 * 
 * @author
 *	Kohsuke KAWAGUCHI
 */
public final class XSLTUtil
{
	/** gets an XSLT engine. */
	public static TransformerHandler getTransformer( java.io.InputStream src )
			throws TransformerConfigurationException {
		
		SAXTransformerFactory xsltFactory = new org.apache.xalan.processor.TransformerFactoryImpl();
		return xsltFactory.newTransformerHandler(new StreamSource(src));
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy