I found it. It's subtle, but has very definite effects.
The line
elt.setAttributeNS(svgns, stuff[1], stuff[2]);
should be
elt.setAttributeNS(null, stuff[1], stuff[2]);
The elements are in the default SVG namespace, but attributes with
not prefix have no namespace...Not event the default namespace.
I made the chaneg in a copy of your file and it works now.
Later,
G. Wade
josh wrote:
>
> At 11:18 AM 3/21/2003, you wrote:
> >Batik 1.5b4.
> >
> >There's quite a bit of support code around what I posted. I don't
> >think anything other than the "ALWAYS_DYNAMIC" flag affects the color
> >changes. Since that had already been posted, I didn't show that code.
> >
> >G. Wade
> >
> >josh wrote:
> > >
> > > At 05:51 AM 3/21/2003, you wrote:
> > > >I regularly modify 'stroke' and 'fill' dynamically without any problems.
> > > >
> > > >G. Wade
> > > >
> > > >josh wrote:
> > > > >
> > > > > At 11:17 AM 3/20/2003, I wrote:
> > > > >
> > > > > > Are there only certain attributes that are
> > > > > >changeable
> > > > >
> > > > > This seems to be the case. Altering the 'transform' attribute
> > works, but
> > > > > style, fill, stroke, d, and a few others I've tried don't.
> > > > >
> > > > > Is there a list of the supported attributes somewhere?
> > > > >
> > > > > - josh
> > >
> > > Can I ask which version of Batik are you using? I looked over the code you
> > > posted and I can't see anything I'm doing differently.
> > >
> > > - josh
>
> Very strange. I can't see how I'm getting this wrong.
>
> If you have the urge to look over my code, it's at
> http://joshwalker.org/svg/MyBatikTest.java
>
> Thanks for the help,
>
> - josh
>
> ---------------------------------------------------------------------
> 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]