doc = PersonalDocument;
}// if
// Create a new XSLT styling engine
XSLT xslt = XSLT.getTransformer( this, CRD.getLocales());
// XSLT xslt = new XSLT( this );
// we could have a blank document, help and about
if( doc == null ) {
doc = DocumentFactory.getNewDocument();
doc.appendChild( doc.createElement( mode )); // null;
}// doc null
// pass the result XML to the styling engine.
xslt.setXML( doc );
// specify the stylesheet selector
xslt.setXSL( Constants.SSLFILE, mode, CRD.getBrowserInfo());
// set parameters that the stylesheet needs.
xslt.setStylesheetParameter( Constants.BASEACTION, CRD.getBaseActionURL());
xslt.setStylesheetParameter( Constants.MODE, mode );
xslt.setStylesheetParameter(
Constants.DISPLAYMESSAGE, message_to_user_about_action );
String MM = (!ManagerMode?"yes":"no");
xslt.setStylesheetParameter( Constants.MODEUSRPWDCHNG, MM );
/** If I write the above as shown below it does not work. Wasted a .5hr on that! */
// xslt.setStylesheetParameter( Constants.MODEUSRPWDCHNG, (!ManagerMode?"yes":"no"));
// set the output Handler for the output.
xslt.setTarget( out );
// do the deed
xslt.transform();
}catch( Exception e ){
LOG.error(e,e);
throw new PortalException(