Revised the file bailey_text_to_fk.xsl based on the revised structure of the incoming text files. Tested that with the 1790-1799 data file and it seems to be working to produce a file called fkTextToInt.xml. The structure of the output is identical to the input except the jurytype and jurysubtype fields in former are collapsed into jury_combinedtype in latter. All the lookups to related tables that I can turn into ints I have.
That file is the source file for a further transform (bailey_add_id.xsl), which adds ids for links between trials, crimes, rec-reps etc.