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
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
>My main question was, are these changes things that people are
>interested in?
I am.
bye, Georg
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