Marcel Ruff wrote:

i have just seen a commit for cloned subtree id's.

Well, the commit turned off id's for the cloned subtrees.

As i need such clones i have some questions about it:

- How do the ID change when a clone is made,
 does the standard specify this?

No, according to the specification the Batik implementation is not conformant. You are supposed to create a subtree of 'ElementInstance' Nodes. These nodes reference the corresponding node in the tree that the use references. The element instances are not elements and hence don't have attributes or anything.

- Is the current batik code handling 'use' clones
 and how are the unique ids handled?

See above. We don't try and create unique id's. I will mention that the current 'id' code in Batik treats an id as unique within a disconnected subtree. So you could have the same id in multiple 'disconnected' components. You would have to lookup the id for that disconnected component using an element from that component (probably an SVG element).

   I know this isn't very clear but I'm not clear on what you
want to do so it's difficult for me to be clear, is that clear ;)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to