Existing templates are stored in "xsl" subdirectory structure. "xsl" directory contains supporting procedures, which are used during SQL scripts generation.
Ammending the existing XSL you can change the content of final SQL scripts. DTD and an PSQL XML file example is attached as an appendix.