Dear fellow Inkscapists,

I was wondering if anyone here had a solution for this before I dive into trying to hack something together. The situation is that I have an SVG, where different layers have different languages, and other layers have different graphics. The various combinations of these get exported to in total 9 PDFs, with that number bound to increase. How do I automate that?

Two ideas

1) Does someone have a script that finds a group by its "label", and sets an attribute? (In this case, finds it breadth-first, with the label being the layer name, and setting style=display:none or display:inline.)

2) Is it possible to "include" parts of a document, like in C or LaTeX, but editable and with changes being saved to the individual files?

Best,
Christoph