I have got this working now!
The answers were in the lyx1.2 cvs files. I failed in my attempts to access these as per the www.lyx.org HTML pages. The primary site timed out. The US alternate refused access. But, as often in the past, Kayvan Sylvan's site's ftp pages came to the rescue. There are 2 perl modules LyX::Client and LyX::Polite which do what is required. I will now be able to confound the insurance world by integrating LyX into a insurance application which generates standard claims, policy, renewal, and endorsement letters complete with enbedded data and then allows the user to edit the documents if desired. I will be travelling to Sydney in a fortnight to inflict this on a client site at Epping. Is there a Sydney-sider who could function as a LyX missionary on my behalf afer I have returned to NZ? John O'Gorman