From: Matthew B. <mat...@co...> - 2005-06-15 14:51:04
|
Sean Mehan wrote: >>A related issue is how committed we feel to the XML templates as they are? >>We all seem to find them too verbose -- maybe we could simplify them >>slightly. Matthew suggested adding support for the <building> tags in the >>new templates, which could save a lot of work. > > ++2! I've got a basic patch for building tags in new style templates in WebLearn HEAD but I'm not sure about the impact of this as its all a bit scary. To convert an only style template to a new style you have to: Change the DOCTYPE and add an xml header: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE template PUBLIC "xhtmltemplate1-strict.dtd" "http://bodington.org/dtd/xhtmltemplate1-strict.dtd"> Add <template> tags around the <html> tags. Quote all attributes. Balance all tags (eg <input> to <input/>). While working on this I discovered that at the moment it is impossible to put an empty <textarea> in a new style template as it gets collapsed to an single textarea which is not rendered correctly by the browser. I also have a fix for this (which is ugly). -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |