public String generateXhtml(String contextRoot) { String contextRootWithoutSlash = contextRoot.replace("\\", "").replace("/", ""); StringBuffer strBuf = new StringBuffer(); // for ease of debugging String descriptionString = ""; if (this.getDescription() != null && !this.getDescription().equals("")) { descriptionString = " (" + this.getDescription() + ")"; } strBuf.append("// File: " + this.getName() + descriptionString + "\n"); strBuf.append( "// Last Generated: " + FormatUtil.formatDate(FormatUtil.getEngSlashSimpleDateTimeFormat(), new Date()) + "\n"); strBuf.append( CommonUtil.includeContextRootInPathsForCss(getContent(), contextRootWithoutSlash)); return strBuf.toString(); }