Style-based XHTML output
We need to run customized XSLT transformations based on path (so that e.g. teiJournal/apa/doc.htm gives us a page rendered using the APA style). My intention was to pass the directory name into the XSLT transformation as a parameter, which I can do, but I can't then use that to selectively import other XSLT files because imports happen before params can be declared.
The solution, therefore, is to have an apa/xhtml.xsl file, which then imports a range of files, including one which is the framework file (containing the root template match). This will (I hope) enable me to use the same basic page code, down to the body tag, from a single file in the xsl folder root, but then render the details using files in the apa folder. I'm working on that now.