Re: Parser pranks

2005-12-02 Thread Jacob Kaplan-Moss
On Dec 2, 2005, at 11:05 AM, pgross wrote: A bit off topic, but on our project, we run every parsed page through xmllint to verify that it is valid XHTML (validates against the XHTML DTD). If you can do the same functionality at the template layer (in DEBUG mode, of course), that would be reall

Re: Parser pranks

2005-12-02 Thread pgross
A bit off topic, but on our project, we run every parsed page through xmllint to verify that it is valid XHTML (validates against the XHTML DTD). If you can do the same functionality at the template layer (in DEBUG mode, of course), that would be really cool. Paul

Re: Parser pranks

2005-12-01 Thread hugo
>My main question was, are these changes things that people are >interested in? I am. bye, Georg

Parser pranks

2005-12-01 Thread Robert Wittams
So, I was messing around with the template parser a bit. I came up with this functionality: Stick: {%load valid%}{%assure well-formed%} ...blah blah xml... {%endassure%} Within the assure block, text is checked for well-formedness by running it through Expat. Parse errors are translated back