Created attachment 43037 [details] Adds a random string to XML element IDs This is a feature request to add a random string to the IDs used in SVG output. The goal is to be able to use several images in the same parent XML document without having conflicting element IDs. My current use-case is having multiple plots etc. generated by Cairo/R included throughout mathematical documents written in XML-based languages. Attached is a quick patch I made that is little more than tweaked pattern replacement, but has the intended effect to illustrate my request. (It most likely needs to be retouched by someone familiar with the source.)
I don't think it's a good idea to have this feature in cairo itself, as it would make the uncompressed file output bigger that what it is currently. It's the tool that merges several SVG files into one that should handle the possibility of conflicting ids.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/304.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.