I occasionally prepare text documents which have many links to sections in other Writer document files. These source files/sections contain variants of the sections needed. The documents I prepare typically require all the sections, but only one version of each section. These production documents change according to requirements. Currently I link all relevant variant sections in source documents, and hide the sections not needed by specifying variable values. The problem is that the number of variant sections controlled by these variables which are not required and therefore hidden makes the production file an order of magnitude larger than needed for what is displayed and printed.
The solution I envisage selects for inclusion only those sections which are needed for the current version of the document. Variables in the production document could identify which files/sections I need. Having the ability in the insert/format section dialogue to specify a variable in the linked filename and linked section could then simplify and shrink my production document, while simplifying the condition for hiding the section.