The exapnsion is need for this part only:26. April 2016 um 08:50
Sure, is needed. Checked it again.
I define \scalesetting as\edef\scalesetting{scale=\xmlattdef{#1}{scale}{1000}}But I am not sure why this needs the expansion..
The enclosing \rotate[rotation=\xmlattdef{#1}{rotation}{0}]{...} does not need the \expanded.