Ian Ross wrote:
hi Thomas
Thanks for the reply. I tried what u said but i still get the black rectangle. Also im confused about one small thing. When you set and attribute do u use the svg namespace or the null namesspace??

Hi Ian,


   Essentially the only attribute[*] not in the 'null' namespace is
the 'href' attribute which is in the xlink namespace (used for
image, use, etc..).

* the other attribute you will occationally see is the 'base' attribute
  which is in the xml namespace and is used to set the effective base url
  of the document for a subtree.

From: Thomas DeWeese <[EMAIL PROTECTED]>
Reply-To: "Batik Users" <[EMAIL PROTECTED]>
To: Batik Users <[EMAIL PROTECTED]>
Subject: Re: filter element problem
Date: Tue, 02 Sep 2003 07:39:17 -0400

Ian Ross wrote:

Hi
I use the following to create a bevel effect for a button. The problem is that the button shows up as a black box on the svg canvas. However when i view the svg file created, on IE, it appears the way i want it to. Can anyone spot any problems?
Any help will be greatly appreciated. thanks in advance.
Ian


In the code below 'root' refers to the svg element and is passed to this method as an argument.


e.setAttributeNS(xlinkNS, "style", "fill:rgb(0,128,128);stroke:rgb(0,0,0);stroke-width:1;filter:url(#Bevel)");



Hi Ian,

    I think this is a typo, the 'style' attribute is _not_ in the
xlink namespace, it is in the 'null' namespace.

root.appendChild(e);

_________________________________________________________________
Get less junk mail with ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
E-mail just got a whole lot better. New ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to