From: Matthew B. <mat...@co...> - 2005-06-15 16:24:35
|
Adam Marshall wrote: > 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? Does it stip out things that don't conform to the DTD though? If so we might have to hack it to support the idea of the extra html tags allowed in Bodington templates. > You would also be able to make sure that <textarea/> appears as > <textarea></textarea> as well. The textarea problem was that the template source contained the closing tag but all XML parsers collapse the opening and closing tags into one so when it passes through the template compilation it comes out as one. The fix was to just ass support to the XmlTemplate compiler so it deals with a <textarea> tag specially. -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |