Title: Line number in Template

Hi !
I'm generating XML files with TT2. The resulting XML files are then postprocessed with XML::Parser.

My problem is, tracing errors in the resulting XML back to the template (where the illegal XML is generated) is quite hard.

My current idea (maybe you know something better) is, to set some "mark" in the XML file, which gives a reference to the Template File. Example:

<mark ttfile="[% component.name %]"/>

What would help even more, is the line number inside the template. Unfortunatly, I don't know, how to get that.

Does anybody know, how the get the actual line number in the template ?

best regards, Martin

Reply via email to