[Kde-java] [PATCH] Make juic work again

Marco Ladermann Marco.Ladermann at gmx.de
Mon Apr 12 14:15:11 CEST 2004


Am Sonntag, 11. April 2004 12:43 schrieb Dominique Devriese:
> Marco Ladermann writes:
> I'm not sure what's causing this, but I'm still getting uncompilable
> java files.  The Layout variables are still not declared as instance
> members.

This are my findings: There is a mode "declareInstances" where those nodes are 
selected that have a property with a "name" except the parent is a 
QLayoutWidget. For this I used the expression "../@class != 'QLayoutWidget'", 
but I forgot (and my version of xsltproc didn't remember me) that in XPath 
this is *not* equivalent to "not(../@class = 'QLayoutWidget')". While the 
former is false for a parent node <vbox> without "class" attribute, the later 
evaluates to true! I changed that and now it seems to produce the same code 
for saxon, xalan (which I also upgraded to version 2.6.0) and xsltproc. Your 
example transformes, compiles and runs with my jdk 1.4.2 and any of the above 
processors (juic -proc (xalan|saxon) ...).

Thanks for your examples
Marco


More information about the Kde-java mailing list