On 09/07/2012 12:18, ml@...2969... wrote:
inkscape usually puts a lot of attributes into a CSS style attribute, for example:
<rect x="10" y="10" width="10" height="10" style="fill:red;stroke:blue;stroke-width:2" />
Is there a way to tell inkscape to never use the style attribute but instead use SVG attributes? For example:
<rect x="10" y="10" width="10" height="10" fill="red" stroke="blue" stroke-width="2" />
Inkscape internally always converts presentation attributes to CSS style properties. You can save a copy as 'Optimized SVG' which does offer 'Style to XML' among its many options.
The file format 'Optimized SVG' is based on the python script 'scour' [1] and has been bundled with Inkscape since the initial release of Inkscape 0.47. Since Inkscape 0.48, various options of the script are presented in a custom 'Optimized SVG Output' dialog when saving as 'Optimized SVG'.
[1] http://codedread.com/scour/
hth, ~suv