Changeset 18436

Show
Ignore:
Timestamp:
30.01.2009 17:23:51 (11 years ago)
Author:
max
Message:

Minor changes to previous major commit including bug fix.
1. Using high-level language (gslib elements coming from a library) that can be used in transformations (skins) so that people creating skins will find it less complicated to understand what to do now.
2. gsf statements are now processed before gslib elements so we can call gslib element from a gsf element.
3. We're adding the DOCTYPE to the final page (that will result from transformations) in the proper way, since DOCTYPE is now defined in the stylesheet file itself instead of fixing it programmatically afterwards.
4. Added some errorhandling (which makes use of new additions to XMLConverter and XMLTransformer classes) so that we don't get null pages on parsing, transforming and file not found exceptions and errors.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java

    r18433 r18436  
    294294            e.printStackTrace() ; 
    295295            System.out.println("error loading library xslt") ; 
    296             return constructErrorXHTMLPage("error loading library xslt\n" + e.getMessage()) ; 
     296            return XMLTransformer.constructErrorXHTMLPage("error loading library xslt\n" + e.getMessage()) ; 
    297297        } 
    298298         
     
    332332            result.setNode(skinAndLibraryDoc); 
    333333            preProcessor.transform(new DOMSource(skinAndLibraryXsl), result); 
    334             System.out.println("GS-Lib statements are now expanded") ;       
     334            //System.out.println("GS-Lib statements are now expanded") ;         
    335335             
    336336        }