Yes,
Greg, XML is an example; I'm not familiar with Perl, but it, too, could format output I'm guessing.
I, personally, use my all-time favourite document formatting package, Ventura Publisher. Corel acquired rights to Ventura from Xerox Corporation (who bought Ventura from the original developers). Corel absolutely
ruined the product (e.g., Ventura Version 8) by embedding high-ASCII control characters and other abominations similar to MS Word and other atrocious text processors.
Therefore, I use an ancient version of Ventura (Version 4) that still relies upon "tagging" (i.e., labelling) paragraphs with ASCII-named paragraph types that correspond to formatting rules in a separate tag-styles file that you create.
What I do, then, is format a sample page the way I want it to look (in Ventura), then I code my SQL (or PL/SQL) to output from the database with the simple paragraph tags that correspond to my sample-formatted page.
Using this technique, I've been able to produce 300-page camera-ready books (with headers, footers, formatted tables, footnotes, and indexes, all with their own fonts and specialised appearances) from a single SQL (or PL/SQL) script, without any additional human intervention or tweaking of the output.
![[santa] [santa] [santa]](/data/assets/smilies/santa.gif)
Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services:
www.dasages.com]