From: Adam M. <ada...@co...> - 2005-06-15 16:42:17
|
-- 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 17:25 | To: bod...@li... | Subject: Re: [Bodington-developers] messin' wi' Templates | | 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. HTMLParser builds up a DOM tree from the HTML so you could achieve this. But then again - it may take longer to do this automatically than by hand. But then again it would help people like Eton who have their own templates. But then again Eton wont want their templates i18nalised. But then again ... | | > 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. Indeed. Adam | | -- | +--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 |