= Project Report = ||'''Version'''||'''Date'''||'''Changes'''|| ||1.0||2010-09-01||Initial version.|| == Description == This report enumerates the definitions in a WebWorks project (.wep). Also works with stationary. See attachments for sample report. '''NOTE: '''It only works with FireFox browser -- tested in 3.6.8. (I gave up trying to track down the apparent XML namespace problems in IE 8 I had it working at one point). <> == How it works == There are three files: * `report_project.html` -- Load this into the Web browser. It prompts for the name of the WebWorks project file, prompts for an optional comment to include in the report, and displays the generated report. * `wwproject.xsl` -- Transforms the WebWorks project into HTML. * `webworks-project.css` -- Formats the generated HTML '''To use the report:''' 1. Put the three files in a directory. 1. Copy the WebWorks project (wep) or stationary into the same directory. 1. Open '''report_project.html''' in the Web browser. 1. When prompted, enter the project name. 1. The second prompt is an optional comment you can add to annotate the report. The report appears in the browser. == Caveats == * The report does not extract all information from the project. I only wanted the style definitions. I do not care about the source documents. * It does not work in IE browser. Something to do with namespaces I'm sure. I just couldn't be bothered to track down the problem. * The XSL could be tightened. I hard coded most of it, in part to use descriptive names for the attributes. * I have used this successfully on WebWorks projects and stationary versions 1.1 and 1.1.1.0. == The files == All files are in the attached ZIP file. Descriptions and listings of the files. === report_project.html === To be opened in the Web browser. Prompts for the project name and displays the generated HTML. '''Note: '''The code for IE is not set up to pass the parameters. I never got around to it. {{{ WebWorks Project Report
}}} === wwproject.xsl === Parses the project file and generated HTML. {{{ Project: as of WebWorks Project Version: Comment: Origin Formats TargetName:   Name:   Type:   Rules s  Default is    Parent rule is     Option Value Source Property Value Source Format Configurations Conditions Condition Value Passthrough UseDocumentValue Variables Variable Value UseDocumentValue adapter Format Value Format Settings Setting Value }}} === webworks-project.css === CSS used to format the generated HTML. {{{ body { width: 650pt; font-family: 'Trebuchet MS', Arial, Verdana, Helvetica, sans-serif; } #body-div { width: 665pt; border: 0; margin-left: 0; } div { border: dotted 1px #dddddd; margin-left: 1em; } div.rule-type { background-color: #ffffff; width: 635pt; } div.rule { background-color: #ffffcf; margin-bottom: 1em; width: 612pt; } div.comment { width: 60%; margin-left: auto ; margin-right: auto ; padding: 10pt; } p { font-size: 9pt; } p.asofDate { text-align: center; margin-bottom: 0; } p.wwVersion { text-align: center; margin-top: 0; } p.comment { text-align: left; margin: 0; } h1 { text-align: center; margin-bottom: 8pt; } h2 { background-color: #dddddd; } h3 { background-color: #ddddfd; } h4 { margin-top: 0; margin-bottom: 0; } td { font-size: 9pt; } th { text-align: left; font-size: 9pt; } }}} ---- CategorySolutions