W3C home > Mailing lists > Public > www-svg@w3.org > December 2002

SVG style

From: Hyunju Shim <hshim@cise.ufl.edu>
Date: Sun, 8 Dec 2002 16:13:10 -0500
Message-ID: <002501c29efe$9cd85420$6baae380@cise.ufl.edu>
To: <www-svg@w3.org>
I have  a SVG drawing tool Mayura, which generate following code.

      <rect style="stroke:#000000;stroke-width:0.5;fill:#c9c9ff" x="10" y="10" width="10" height="10"/>

However, I can not access the attribute via setAttribute to change any of stroke, stroke-width, and fill.
So I need to change the node into following:

       <rect stroke="#000000" stroke-width="0.5" fill="#c9c9ff" x="10" y="10" width="10" height="10"/>

Can I make this transformatin with XSLT? 
If so how?
It seems 'style' is one automic attribute so that there is no way to access a single element in it.
Do I need to parse the document instead of XSL transformation?
Can somebody help me?
Received on Sunday, 8 December 2002 16:07:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:54 UTC