Re: Hash implementation of getElementById

2005-02-27 Thread Cameron McCormack
Hi Thomas. Thomas DeWeese: >I have a working implementation of getElementById built around > a Document Hash Table. It handles all the nasty cases pretty well. Nice! Have you handled the case where (in DOM 3) an attribute is set to be an id attribute? I can try to modify your implementatio

Re: Apache developers at int. SVG Open conference?

2005-02-21 Thread Cameron McCormack
Hi Ruud. Ruud Steltenpool: > Looking at the incoming abstracts, plus from personal messages having an > idea of what's still coming, i expect about every major SVG implementor > actively participating at SVG Open 2005. However, Batik implementors are > not among them yet :-( > > Please look at th

Re: DOM 3

2005-02-20 Thread Cameron McCormack
Now that I think of it, and that I've done the work of creating these extended DOM interfaces :), is there any need for them at all? If users of the Batik DOM classes have to downcast to get access to the DOM 3 methods, why not just make them cast to one of the dom.Abstract* classes? Cameron --

Re: DOM 3

2005-02-20 Thread Cameron McCormack
Thomas DeWeese: >What are you compiling with? JDK 1.3? That doesn't have > xml-apis at all (they were added in 1.4 as DOM 2). In which > case my point about the xalan might still be valid. No, with JDK 1.4. Anyway, don't worry about this any more. :-) -- e-mail : cam (at) mcc.id.au

Re: DOM 3

2005-02-20 Thread Cameron McCormack
Thomas DeWeese: >I don't know for sure, if you tweaked the 'compile' target > then you probably need to tweak the 'compiletest' target as well. > Otherwise I would compare the two targets and see how they > differ. Yeah, the strange thing was that I didn't have to change the 'compile' target a

Re: DOM 3

2005-02-20 Thread Cameron McCormack
Thomas DeWeese: > There is one other issue which is that I would like to put > out a 1.5.2 before making such a large change (especially if it > is going to make things difficult for users on JDK 1.5 or less). > One option would be to fork the code base which would allow this > work to go in now

Re: DOM 3

2005-02-19 Thread Cameron McCormack
And another thing: I am trying to put my test cases into regard, but I come up against the DOM 3 interfaces problem here, too. Compiling the main sources works fine but when compiling the test sources it finds only the DOM 2 interfaces, and so my tests don't compile. Any hints? Thanks, Cameron

DOM 3

2005-02-18 Thread Cameron McCormack
Hi Thomas and others. I've implemented DOM 3 Core and Events support for Batik, along with a number of tests for the new code. Before checking it in, though, there are still a couple of issues I want to nut out: 1. How should the lack of DOM 3 interfaces in JDK < 1.5 be handled? For testing,

Re: Keeping SVG 1.2 code separate from SVG 1.1 code

2005-01-20 Thread Cameron McCormack
ld execute differently by just checking if a function exists on the object or not. But I guess if you are writing a 1.1 document and it refers to a DOM 3 method then any behaviour would be (strictly) acceptable -- if it is a function reference or a the undefined value, it shouldn't make much diff

Keeping SVG 1.2 code separate from SVG 1.1 code

2005-01-19 Thread Cameron McCormack
message http://lists.w3.org/Archives/Public/www-svg/2005Jan/0029.html I think it would be difficult to handle documents whose version changes if there is a particular DOMImplementation that is chosen at document parse time. Any thoughts? Thanks, Cameron [1] http:

Re: RFC: Support for SVG 1.2

2004-11-11 Thread Cameron McCormack
OMImplementation. > I'm not worried too much about this since I suspect that most > people only use the SAXSVGDocumentFactory to construct documents. > What do people think should I preserve this class? I obviously can'

Re: Problem in SVGFont class ?

2004-09-11 Thread Cameron McCormack
just quotes everything to be safe, so it doesn't have to check. Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: SVG, sXBL and Batik

2004-09-02 Thread Cameron McCormack
s XML, sXBL would be one possibility for having your format rendered as SVG behind the scenes. Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Performance of Batik.dom.svg.SVGOMDocument.getById()

2004-08-28 Thread Cameron McCormack
.getElementById I suppose that is what one should use inside shadow trees. It would mean though that authors would have to put an svg element explicitly in their shadow trees if they want to look up elements by id. Cameron -- Cameron

Re: Performance of Batik.dom.svg.SVGOMDocument.getById()

2004-08-26 Thread Cameron McCormack
ded mark them as 'dirty', when someone asks for an id > - check the hash table if it is present and still part of the document > great return it. Otherwise start walking the 'dirty' subtree's adding > id's as you go, until you get to the one you want (or retu

Re: SVGParser to Renderer

2004-07-16 Thread Cameron McCormack
p://xml.apache.org/batik/javadoc/org/apache/batik/swing/svg/JSVGComponent.html Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Extensions

2004-07-13 Thread Cameron McCormack
document to be dynamic. Anything wrong with these two proposed changes? Thanks, Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Regard

2004-07-02 Thread Cameron McCormack
he transcoder and svggen because 160 errors is too > many to examine closely. Is there a CVS tag I can use to get the 1.5.1 sources? Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 - To unsubsc

Regard

2004-07-02 Thread Cameron McCormack
test report is here: http://mcc.id.au/~cam/2004.07.01-20h51m35s/html/regardReport.html Help to make these tests pass appreciated! Thanks, Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 - To unsubsc

Re: bugzilla during comiter absence

2004-06-29 Thread Cameron McCormack
Cameron McCormack: > >You could easily check this by removing or replacing with an 8, > > the character '∞'. This doesn't help much with identifying > > the problem font though... > > There are a few generic sounding fonts in that package, such as

Re: bugzilla during comiter absence

2004-06-29 Thread Cameron McCormack
problem font though... There are a few generic sounding fonts in that package, such as a Helvetica; it could be the culprit. I'll try finding which one is the problem font tomorrow. Thanks, Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 --

Re: bugzilla during comiter absence

2004-06-29 Thread Cameron McCormack
s like it is in a Type 1 font. *tests* I removed the gsfonts-x11 package and now it seems to work. Doing this probably will break ghostscript or xpdf though, I guess. Maybe I'll just have to run the tests in Windows in vmware, but that would be fair

Re: bugzilla during comiter absence

2004-06-29 Thread Cameron McCormack
samples/mathMetal.svg java: ../../../src/share/native/sun/awt/font/t2k/t1.c:2171: tsi_T1GetGlyphIndexFromAdobeCode: Assertion `0' failed. Java Result: 129 BUILD SUCCESSFUL Total time: 4 minutes 52 seconds Any idea? I did think that I would get some inaccurate renderings because of text, but some of the examples there (such as the Apache logo) don't have text. The assertion is a bit of a worry too. :/ Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: bugzilla during comiter absence

2004-06-28 Thread Cameron McCormack
Tonny Kohar: > I would like to ask the status of Batik bug found during commiter > absence and the provided fix (is it acceptable ?). > > Here is the bugzilla ID, and the provided fix by various person. > - 28679 (Fill rule bug, it is fixed by Cameron McCormack, if the fix is &g

Re: All quiet on the SVG front

2004-06-21 Thread Cameron McCormack
Vincent Hardy: > I already sent the request to [EMAIL PROTECTED] with the result of the > vote. Have you not received confirmation? I sent the request 6/17. No, I haven't heard anything. -- Cameron McCormack | Web: http://mcc.id.au/ | IC

Re: All quiet on the SVG front

2004-06-21 Thread Cameron McCormack
rom then on. Yes I did tell Vincent my preferred username. I should have a CLA on file already. I didn't mention what mail address I'd like to have mails forwarded to, though, which would be cam-apache (at) aka.mcc.id.au. Cameron -- C

Re: Animated paths

2004-06-19 Thread Cameron McCormack
gList" field instead of > the method "getPathSegList"? Yes, in fact you should use pathSegList instead of getPathSegList. (I have a habit of looking up the SVG DOM Java interfaces in Batik, where methods are used instead of properties.) Cameron -- Cameron McCormack | Web: htt

Re: Animated paths

2004-06-18 Thread Cameron McCormack
, "path") which will return a NodeList object of all the path elements in the document, in document order. Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: All quiet on the SVG front

2004-06-16 Thread Cameron McCormack
Jamie Browning: > Has it? Where have you read/seen this? The latest SVG working draft from last month. I hear that a new one will be out soon! -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 - To unsubscr

Re: All quiet on the SVG front

2004-06-16 Thread Cameron McCormack
> Rendering Custom Content (RCC) which is proposed in the SVG 1.2. spec. (Which has been dropped in favour of XBL.) I don't think forking Batik is a good idea. Just get some life in to the project in the form of some more developers. I saw Vincent at the webapps workshop the other week, but

Re: All quiet on the SVG front

2004-06-16 Thread Cameron McCormack
Tonny Kohar: > Do you have any cvs write access privileges? I don't think so; I never tried. I would need to have been given a username and password, right? -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922

Re: All quiet on the SVG front

2004-06-15 Thread Cameron McCormack
in as commiter. Then everyone will happy and Batik > project continue. I think Vincent and Thomas agreed at one stage to make me a committer, but nothing ever came of it. -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 ---

Re: fill rule bug?

2004-04-29 Thread Cameron McCormack
Glen Mazza: > Vincent and Thomas have been kind of quiet lately, so please add the patch > to Bugzilla so it won't get lost. > > http://nagoya.apache.org/bugzilla/query.cgi Good idea. -- Cameron McCormack | Web: http://mcc.id.au/

Re: fill rule bug?

2004-04-29 Thread Cameron McCormack
oks like you're right. Here's a patch that should fix the problem (which also occurs with polygon and polyline elements). Maybe if Vincent or Thomas are listening they could consider checking it in to CVS. Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 ---

Patch for SVGTextElementBridge.getSubStringLength

2004-04-11 Thread Cameron McCormack
Hi guys. Here's a tiny patch to avoid a NPE in SVGTextElementBridge .getSubStringLength when you try to get the length of zero characters. Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 --- sources/org/apache/batik/bridge/SVGTextElementBridge.java 2004-04-12

Re: Patch for animated lists

2004-02-15 Thread Cameron McCormack
Having just read the spec a little closer, I think the attached patch is better. (text elements need default values of "0" for x and y attributes, but the other text positioning elements don't.) Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 Index: sou

Patch for animated lists

2004-02-15 Thread Cameron McCormack
attributes were wrong. Thanks, Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 Index: sources/org/apache/batik/dom/svg/AbstractSVGList.java === RCS file: /home/cvspublic/xml-batik/sources/org/apache/bat

Re: Simple newbie question - CSS parser not found

2004-02-10 Thread Cameron McCormack
much appreciated What exactly do you have in your classpath? Try just putting xml-batik/batik-1.5.1/batik.jar in there, as it will include all the other jars that are necessary. Make sure you've done a "build jars" to make these jar files. Cameron -- Cameron McCormack | Web: ht

Re: List moderated for attachments?

2004-02-10 Thread Cameron McCormack
y take 5 hours or more. I think I found the problem: my envelope From address as generated by my mail server didn't match my From: address. I reconfigured things and now messages come through straight away. :-) -- Cameron McCormack | Web: http://

List moderated for attachments?

2004-02-10 Thread Cameron McCormack
Is it that when I send a mail to the list with an attachment, it goes to a list moderator or something? I get really inconsistent delivery of messages, and I'm wondering if that's the reason. Sometimes the message come straight through, other times it may take 5 hours or more. -

Patch to let BridgeExtensions report which elements are dynamic

2004-02-10 Thread Cameron McCormack
hould cause a document to be dynamic. This is useful for my project, as it would let me not modify BaseScriptingEnvironment and keep all my code as an extension. Thanks, Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 Index: sources/org/apache/batik/b

Patch to let BridgeExtensions report which elements are dynamic

2004-02-09 Thread Cameron McCormack
hould cause a document to be dynamic. This is useful for my project, as it would let me not modify BaseScriptingEnvironment and keep all my code as an extension. Thanks, Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 Index: sources/org/apache/batik/b

Re: SoftDoublyIndexedTable for storing LiveAttributeValues

2004-02-06 Thread Cameron McCormack
it a little closer later on. I see. The changes I made were to store the animated value actually in the LiveAttributeValue object. -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 - To unsubscribe, e-mail:

SoftDoublyIndexedTable for storing LiveAttributeValues

2004-02-05 Thread Cameron McCormack
ecause the SoftDoublyIndexedTable doesn't keep a hard reference to it. I suggest changing AbstractElement to use DoublyIndexedTable. I don't see any obvious memory leak issues there, but maybe there are some that prompted the use of the soft references in the first place. Cameron -- Came

Test

2004-02-05 Thread Cameron McCormack
Sorry about the test, my last mail didn't get to the list. -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Patch for GenericBridge handling, fix tool tip bug

2004-01-12 Thread Cameron McCormack
nts, and the one for the g happens to be called later. Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 diff -ru xml-batik/sources/org/apache/batik/bridge/AbstractGraphicsNodeBridge.java xml-batik.test/sources/org/apache/batik/bridge/AbstractGraphicsNodeBridge.java --- x

Override style patch

2003-12-17 Thread Cameron McCormack
I'll fax off the CLA later today some time. Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 diff -ur -x CVS xml-batik/sources/org/apache/batik/css/engine/CSSEngine.java xml-batik.csvg/sources/org/apache/batik/css/engine/CSSEngine.java --- xml-batik/sources/org/apache/b

Re: Animation, override stylesheet

2003-12-16 Thread Cameron McCormack
ent override the fill="yellow" on the circle? Or do I not know the CSS cascade properly? Thanks, Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 - To unsubscribe, e-mail: [EMAIL PROTECT

Re: Animation, override stylesheet

2003-12-15 Thread Cameron McCormack
ing a slightly > more general architecture. What third class do you mean? >That would be great! Do you have an Apache CLA on file? If not > you should probably review it and make sure you can sign one. No I don't. Coincidentally we just had a seminar on IP issues here at

Animation, override stylesheet

2003-12-13 Thread Cameron McCormack
yReciever" interface should be "MainPropertyReceiver". That interface's method also has a typo -- "setMainPoperty" should be "setMainProperty". I'll submit a patch when I've finished the override style stuff (without the animation support, which'll

Experimenting with modifying CSS properties in code

2003-12-07 Thread Cameron McCormack
animated values, so if you are animating a CSS value is it impossible through script to get at that animated value? (Or if animated values *are* returned, is it impossible to get the base value?) Thanks, Cameron -- Cameron McCormack | Web: http

Re: Bug report for Batik 1.0 [2003/12/07]

2003-12-07 Thread Cameron McCormack
plicable to Batik... -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

LiveAttributeValue

2003-12-04 Thread Cameron McCormack
Hi Batik developers. What are the LiveAttributeValue interface and the {get,put}LiveAttributeValue methods in AbstractElement used for? Are they the beginnings of animation support? I notice that the SVGAnimated* types implement the LibeAttributeValue interface. Thanks, Cameron -- Cameron

Re: SVGOMUseElement.getInstanceRoot() ?

2003-09-09 Thread Cameron McCormack
getInstanceRoot function returning the element from the SVGOMCSSImportedElementRoot wouldn't be correct? Thanks, Cameron -- Cameron McCormack // [EMAIL PROTECTED] // http://www.csse.monash.edu.au/~clm/ // icq 26955922 --

Re: using batik to support graph layout

2003-08-14 Thread Cameron McCormack
generated would work quite well. Cameron -- Cameron McCormack // [EMAIL PROTECTED] // http://www.csse.monash.edu.au/~clm/ // icq 26955922 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: cvs commit: xml-batik/xdocs index.xml javaScripting.xml status.xml

2003-07-10 Thread Cameron McCormack
hasn't started on it I will probably write it. Cameron -- Cameron McCormack // [EMAIL PROTECTED] // http://www.csse.monash.edu.au/~clm/ // icq 26955922 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]