Converting between CSS and XSL attribute sets in XSLT is necessary for storing styles in the db, and a bit fiddly to do manually, so I've been working on a Java app to handle it. CSS to attribute-sets is working, and I'm halfway through the reverse. This code may be repurposed in a Java library that could be called from a Cocoon pipeline, as part of the editor's GUI.