Hi Dudka,
The easiest way would be to add an 'svg:style' element to the document and have that reference mystyle.css with it's xlink:href attribute.
There isn't a really clean way to do this without adding the node (you could potentially make it the useragent stylesheet or something).
Dudka Tetyana wrote:
Hello!
I have mystyle.css file.
rect {
fill: red;
stroke: blue;
stroke-width: 3
}
I want to associate all style properties for SVG element using Cascading Style Sheets from the external
CSS file. And I want to connect this css file from java application. And I don’t know how to do this
exactly from java file and then instead of writing
rect.setAttributeNS(null, "style", "fill: red; stroke-width: 3");
I want just say what style to use.
How can I do this?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]