Thread: [phpwebapp-commits] CVS: web_app/doc to_do.txt,NONE,1.1 xhtml_template_specification.txt,1.2,1.3 tas
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2004-07-13 13:18:17
|
Update of /cvsroot/phpwebapp/web_app/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4377/doc Modified Files: xhtml_template_specification.txt tasks.txt ToDo.txt Added Files: to_do.txt Log Message: xml parser --- NEW FILE: to_do.txt --- * Parse the templates using an XML parser. - Fix the problems with <Repeat>. - There is a problem with the Repeat/Header tags, because the contents of the <Header> usually is not well-formed xml and this breaks the xml parsing. E.g. it may be something like this: <repeat rs="rs_id"> <header> <table> </header> <tr><td>{{xyz}}</td></tr> <footer> </table> </footer> </repeat> Think about how to solve this. - Handle XML errors (in templates) as gracefully as possible. - Use 'tidy' or any shell scripts for converting from HTML to XHTML. After this, use an XSLT transformer to reformat the templates properly. This script should convert tags like <br>, <hr>, <input> etc. to <br/>, <hr/>, <input/> etc. Some other things that may need to be converted are: <li>, <option>, checked, nowrap, , <img>, etc. - Improve the output, so that the XHTML page that is generated is well-formed, well-indented, etc. + don't output <br></br>, but <br/> (similar for other empty tags) + don't apply indentation for tags <pre>, <xmp>, etc. - Use the new framework with the other web applications (app1, app2, app3, documentation, top10, smewapp, ilar, kushtetuta, doc-book, etc.) in order to test the new parser (and the XHTML conversion tool(s)). - Make any small improvments in the documentation. - Make a new release of phpwebapp that includes the latest changes in the parser any improvments in the docs, etc. * class.WebPage.php::print_dbg_messages() Output debug messages using EditableRS and templates. * Use css styles to the other debug messages as well. * Substitute ereg_replace() with preg_replace(). * Reformat all the files (automatically with emacs). Index: xhtml_template_specification.txt =================================================================== RCS file: /cvsroot/phpwebapp/web_app/doc/xhtml_template_specification.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** xhtml_template_specification.txt 16 Jul 2003 09:27:59 -0000 1.2 --- xhtml_template_specification.txt 13 Jul 2004 13:18:08 -0000 1.3 *************** *** 148,167 **** - * <RSVars> elements (Recordset Variables) - ========================================== - <RSVars RS="rsID" row="1"/> - - <!--- - This element declares several variables at once. Their names are - the names of the fields from the specified recordset. Their values - are calculated from the values of the specified row of the recordset. - They are calculated the same way as the value of the <Var> elements. - - In the case of the <Repeat> element, such a declaration is done by - default for the current row of the iteration over the recordset and - it is not necessary to do it explicitely. - ---> - - * Template variables ===================== --- 148,151 ---- *************** *** 186,241 **** ---> - - - * Recordsets with a specified connection (long-term objective) - =============================================================== - <Recordset ID="rsID"> - <Query> select {{R_NAME}} from table </Query> - <Connection> - <Server>192.168.1.114</Server> - <Port>1234</Port> - <Username>db_user</Username> - <Password>passwd</Password> - <Database>db_name</Database> - </Connection> - </Recordset> - - <!--- - If we want to use another connection, then we should specify it. - The elements used in the example above are subject to be discussed - and refined (both their names and their conntents). - ---> - - - * Static recordsets (long-term objective) - ========================================== - <Recordset ID="rsID"> - <Table> - <THead> - <Column>field1</Column> - <Column>field2</Column> - </THead> - <TBody> - <TRow> - <TData>val11</TData> - <TData>val12</TData> - </TRow> - <TRow> - <TData>val21</TData> - <TData>val22</TData> - </TRow> - <TRow> - <TData>val31</TData> - <TData>val32</TData> - </TRow> - </TBody> - </Table> - </Recordset> - - <!--- - We can also specify a static recordset (not filled by - a query), like in the example above. The names of the - elements used in the example above are subject to be - discussed and refined. - ---> - --- 170,171 ---- Index: tasks.txt =================================================================== RCS file: /cvsroot/phpwebapp/web_app/doc/tasks.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** tasks.txt 4 Aug 2003 12:06:13 -0000 1.3 --- tasks.txt 13 Jul 2004 13:18:08 -0000 1.4 *************** *** 4,22 **** ======================================================== ! 1 - Automatic Documentation 2 - Implement Template Merge/Separator Tool ! 3 - Find HTML Reformater Tool (tidy) ! 4 - Improve the Output of the Framework to be Regular HTML ! (Tasks 2, 3, 4 will make possible to improve all the templates ! of an application so that they are clean XHTML files, this is ! a requirement for task 5, because an XML parser can parse only ! an XHTML file and cannot parse an irregular HTML file.) ! 5 - Parse and process the templates using an XML parser. 6 - Corrections in WebBoxes and WebClasses. ! 7 - Page and Component Caching. 8 - Improvments in DB Component. --- 4,18 ---- ======================================================== ! + 1 - Automatic Documentation 2 - Implement Template Merge/Separator Tool ! + 3 - Find HTML Reformater Tool (tidy) ! + 4 - Improve the Output of the Framework to be Regular HTML ! 5 - Parse and the templates using an XML parser. 6 - Corrections in WebBoxes and WebClasses. ! - 7 - Page and Component Caching. 8 - Improvments in DB Component. *************** *** 43,60 **** 'web_app/doc/changes.html'. ! 13 - Parse and process the templates using a DOM XML parser. This may require some changes in the structure of the classes of the 'parser' package. ! 14 - Implement the <TagDefinition> and any other changes related to XML transformation and display. - 15 - Find any project management or task managment tool - (if it is web-based then it is better), learn some - new things how to use Emacs more efficiently. - - (This will be like a break before starting the Web Development - Environment). - Web Development Environment --- 39,49 ---- 'web_app/doc/changes.html'. ! - 13 - Parse and process the templates using a DOM XML parser. This may require some changes in the structure of the classes of the 'parser' package. ! ? 14 - Implement the <TagDefinition> and any other changes related to XML transformation and display. Web Development Environment Index: ToDo.txt =================================================================== RCS file: /cvsroot/phpwebapp/web_app/doc/ToDo.txt,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ToDo.txt 30 Sep 2003 07:11:20 -0000 1.5 --- ToDo.txt 13 Jul 2004 13:18:08 -0000 1.6 *************** *** 87,93 **** again in the structure that they were before. ------------------------------------------------------------- - * ?? - The framework should handle the errors gracefully, so that - no terrible error messages are displayed to the user. - ------------------------------------------------------------- * - The messages of the framework (errors, warnings, etc) should support multiple languages. --- 87,90 ---- *************** *** 95,99 **** - The messages displayed from JS code (alerts) should support multiple languages. - ------------------------------------------------------------- * - Add i18n support to the framework --- 92,95 ---- *************** *** 412,420 **** it to the correct webbox. * etc. ! ------- MISC ----------------------------------------------- ! * - Add a switch at const.Settings.php, which tells the framework ! to print debug information for the functions that are executed ! in the order that they are executed. Such functions can be ! onParse, onRender, init, eventHandler, on_event, etc. ! ------------------------------------------------------------- ! etc. --- 408,410 ---- it to the correct webbox. * etc. ! |