I have build some extensions that generate guides (like guides in a grid with columns and gutters - available here: https://github.com/sambody/inkscape-guide-tools). 

It works fine, but now that Inkscape 0.91 is out with the ability to change the color (and label) of an existing guide by hand, I had the following question: When I generate a guide in an extension, can I define the color (and label) of the guide when generating ? If yes, how?

I'm using a code like this :
inkex.etree.SubElement(parent,'{http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd}guide',{'position':position,'orientation':orientation})

I tried with just using 'color':'#ff0000ff' as extra parameter, but that didn't work.

If setting the color is possible, I could let the user choose a color for the generated guides, different from their default guide color.

Thanks.

Samuel