Hello everyone,

Please bare with me as this is my first post and I am pretty new to TT.

Yesterday I designed a few templates and processed them with data 
read in from an XML file.
I have an "init" template that reads the contents of an XML file to 
"constants". I define "init" as a pre_process in my ttree config file, 
and everything works fine.

[% USE constants = XML.Simple("file.xml") %]

Now last time I checked, XML tags should not contain underscores (only
hyphens). TT on the other hand, doesn't allow hyphens in the variable
names. So here is my dilemma: you can't have this model function without
breaking either the XML specs or the TT. Including underscores in XML
tags doesn't  break the XML::Simple (though I don't know what other
broader
implications it might have) pre se; I am just wondering whether I am
doing something wrong, or whether this is commonplace and I just have to
live with it.

TIA for any advice/comments.


Arsh  

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

Reply via email to