Hi,

Has anyone ever done this?

I am working on migrating away from XSLT to Template Toolkit. One thing I miss is the ability to have compile-time verification that the document will generate well formed XML, especially in cases where the following pathological example may occur:
[% BLOCK blah %]
[% IF foo %]
<b>foo</b><br/>
<a href="foolink">
[% ELSE %]
<a href="barlink">
[% END %]
Generic hyperlink description
</a>
[% END %]


Doing such checks at compile-time is greatly preferred over doing it at run-time as compile-time verification checks all conditional processing paths/loop processing paths, yet they have to be comprehensively checked at run-time with lots of test input (which is error prone).

I am currently working on retrofitting such XML validation alongside other nice-to-haves. Before I make a bigger fool of myself reinventing the wheel, has someone already done this?

Thanks,

Paul.

PS. list admin, I accidentally sent this message initially with an incorrect 'FROM' email address, it is now awaiting approval. Please ignore it :-(




_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to