src/java/isac/util/genhtml/GenHTML.java
branchML_test
changeset 291 80f98637eff6
parent 290 3f76f7d39384
     1.1 --- a/src/java/isac/util/genhtml/GenHTML.java	Wed Jul 06 11:20:15 2005 +0200
     1.2 +++ b/src/java/isac/util/genhtml/GenHTML.java	Wed Jul 06 11:27:02 2005 +0200
     1.3 @@ -44,27 +44,9 @@
     1.4  
     1.5      static final int SIMPLE_PBL_NODE = 5;
     1.6  
     1.7 -    //static String destination_ = "/netshares/studenthomes/mlang/proto_v2/isac/proto2/isac/xmldata/";
     1.8 -    static String destination_ = "/netshares/studenthomes/mlang/xmldata/";	
     1.9 -   // static String destination_ = "/netshares/studenthomes/mlang/test_xml/";	
    1.10 -    
    1.11 -    /**
    1.12 -     * Method derived from HttpServlet to react on an request by an web-browser
    1.13 -     * AG? ................^^^^^^^^^^^ ???
    1.14 -     * 
    1.15 -     * @param request
    1.16 -     *            object which holds informations about the request like the URL
    1.17 -     *            used to access this servlet
    1.18 -     * @param arg1
    1.19 -     *            object which provides methods to return the results to the
    1.20 -     *            web-browser.
    1.21 -     * @see javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest,
    1.22 -     *      javax.servlet.http.HttpServletResponse)
    1.23 -     */
    1.24 +    static String destination_ = "/home/neuper/proto2/www/kbase/";
    1.25  
    1.26 -   
    1.27 -   //FIXXME arguments for destination_ in main 
    1.28 -    public static void main(String[] argv) {
    1.29 +   public static void main(String[] argv) {
    1.30          if (argv.length > 0) destination_ = argv[0];
    1.31          GenHTML genhtml = new GenHTML();
    1.32          genhtml.buildHierarchy("met/code.html");
    1.33 @@ -378,11 +360,8 @@
    1.34  
    1.35              if (!contentfile.trim().endsWith(".xml")) { return; }
    1.36              out = new FileWriter(destination_ + path + ".html");
    1.37 -            
    1.38 -            String test = InformationProcessor.loadXML(session, command, contentfile);
    1.39 -            System.out.println(test);
    1.40 -            xmlSource = new StreamSource(new StringReader(test));
    1.41 -                       
    1.42 +            xmlSource = new StreamSource(new StringReader(InformationProcessor
    1.43 +                    .loadXML(session, command, contentfile)));
    1.44              xslSource = new StreamSource(getClass().getResourceAsStream(
    1.45                      "/isac/util/genhtml/templates/pbl_node_content.xsl"));
    1.46              //		}