if ( !inputFile.exists() ) throw (new Exception("SOSXMLTransformer: no file found containing xml document." ));
StreamSource stream = new StreamSource(inputFile);
TransformerFactory tFactory = TransformerFactory.newInstance();
Source stylesheet = tFactory.getAssociatedStylesheet(stream, null, null, null);
if ( stylesheet == null ) throw (new Exception("SOSXMLTransformer: no stylesheet found in input file." ));
Transformer transformer = tFactory.newTransformer(stylesheet);
addParameters(transformer, parameters);