From: Adam M. <ada...@co...> - 2005-06-15 15:15:54
|
You can use HTMLParser (http://htmlparser.sourceforge.net/) to go from badly formed HTML to well formed xHTML, ie, add closing tags, quoted attributes and the like automatically. You could almost certainly do other stuff whilst you're at it like <html> -> <template><html> </html> -> </html></template> Would it be an idea to look into this as a time saving exercise? You would also be able to make sure that <textarea/> appears as <textarea></textarea> as well. Adam -- Adam Marshall: OUCS, 13, Banbury Rd. Oxford OX2 6NN. Shameless plug: Use the Bodington VLE http://bodington.org Blog: http://ramble.oucs.ox.ac.uk/blog/adamm/ Cheese of the month: Cheshire (not to be underestimated) | -----Original Message----- | From: bod...@li... [mailto:bodington- | dev...@li...] On Behalf Of Matthew Buckett | Sent: 15 June 2005 15:51 | To: bod...@li... | Subject: Re: [Bodington-developers] Templates | | 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------+ | | | ------------------------------------------------------- | SF.Net email is sponsored by: Discover Easy Linux Migration Strategies | from IBM. Find simple to follow Roadmaps, straightforward articles, | informative Webcasts and more! Get everything you need to get up to | speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click | _______________________________________________ | Bodington-developers mailing list | Bod...@li... | https://lists.sourceforge.net/lists/listinfo/bodington-developers |