Can I just ask, why are you are adding rules like this?!
-----Original Message----- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: 18 January 2007 14:18 To: CF-Talk Subject: Parse CSS using Java/ColdFusion? Hey all, I have been playing about with the javax.swing.text.html.StyleSheet in an attempt to keep track of CSS rules: <cfset objStyleSheet = CreateObject( "java", "javax.swing.text.html.StyleSheet" ).Init() /> <cfset objStyleSheet.AddRule( JavaCast( "string", "td.header { border-top: 0px solid black ; }" ) )/> <cfset objStyleSheet.AddRule( JavaCast( "string", "td.header { border-top-width: 3px ; }" ) )/> <cfset objRule = objStyleSheet.GetStyle( JavaCast( "string", "td.header" ) ) /> #objRule.ToString()# What I want this to do is know that the second border width overrides the first one. Apparently the CSS implementation in Swing is rather limited and the above is not working. It is storing the two different definitions as two different styles..... I think this Swing approach is waaaaay off. Does anyone know if there is a way in Java to be able to pass in various CSS definitions and then at the end query attributes and get actual cascading styles? ....................... Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com <http://www.bennadel.com/> Need ColdFusion Help? www.bennadel.com/ask-ben/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266870 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

