private static StringReader GetXSLReader( string xslName )
{
//-------------------------------------------//
//--- Lookup the document in the database ---//
//-------------------------------------------//
Document document = DocumentManager.GetDocument( xslName, 14 );
if (document == null)
throw new Exception( string.Format( "Failed to find XSL style sheet {0}", xslName ) );
LogManager.SourceTrace(ATMLTranslator.SOURCE, string.Format("Loading XSL Style Sheet {0}", xslName));
var xslReader = new StringReader( Encoding.UTF8.GetString( document.DocumentContent ) );
return xslReader;
}