public void generateDocumentation ( String sourcecodePath , String suiteName , FileOutputStream htmlFileOutput ) throws Exception { TransformerFactory tFactory = TransformerFactory . newInstance ( ) ; // Fortify Mod: prevent external entity injection tFactory . setFeature ( XMLConstants . FEATURE_SECURE_PROCESSING , true ) ; DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; // Fortify Mod: prevent external entity injection factory . setExpandEntityReferences ( false ) ; factory . setNamespaceAware ( true ) ; factory . setXIncludeAware ( true ) ; DocumentBuilder parser = factory . newDocumentBuilder ( ) ; Document document = parser . parse ( sourcecodePath ) ; Transformer transformer = tFactory . newTransformer ( new StreamSource ( xsltSystemId ) ) ; transformer . transform ( new DOMSource ( document ) , new StreamResult ( htmlFileOutput ) ) ; }
Generate pseudocode documentation for CTL test scripts . Apply the stylesheet to documentate the sources of tests .