
21 Jun
2005
21 Jun
'05
9:20 p.m.
Quoting aaron@...749...:
What should an effect do to properly handle id assignments?
Inkscape will add missing ids as needed, and it will be smart enough to avoid collisions when doing so.
It's certainly not a good idea to add ids to EVERYTHING, because ids are not always going to be legal.
Big example: RDF mandates the rdf:ID attribute, the id attribute is illegal, and rdf:ID is not even legal on all RDF elements.
So, be conservative. It IS a good idea to make an effort to carry over ids you were given in the original document, when it's reasonably easy to do so. Otherwise, don't worry about setting ids unless you need to ensure a particular element has a specific id.
-mental