The existing code uses contexts.xlsx to translate Excel into xlm, but this sheet includes some hard-coding (like the dates). It seems that this sheet identifies the full context for each sheet-column combination in the Excel sheet. Ideally we would instead have:
A dictionary to relate possible column headers to the appropriate context, scope, statement.
A function to create the xlm code from the relevant inputs
The existing code uses
contexts.xlsx
to translate Excel into xlm, but this sheet includes some hard-coding (like the dates). It seems that this sheet identifies the full context for each sheet-column combination in the Excel sheet. Ideally we would instead have: