Upgrading to Zope Style Sheets


  Upgrading from earlier versions


  I am afraid that the conversion from ZClasses to Python
  renders all existing ZStyleSheet object trees incompatible
  with this version. Your best bet is to save them from your
  existing stylesheets the easiest way to do this is to visit
  "/...path.../..stylsheet_name.../index_html".


  You will need to delete any old versions of the ZStyleSheet
  product and any stylesheets that you have installed BEFORE
  installing this version (Or at least before rebooting).
  Once you have done this, you can unpack the tarball to the
  root of your Zope tree as usual.


  Upgrading from static style sheets


  You can now import you old, flat, static cascading stylesheets
  into your Zope tree as ZStyleSheet objects! All you need is the
  stylesheet saved on your client, and either fill in the FILE field
  when creating the stylesheet, or use the Import CSS tab at any
  time after to add to the existing ZStyleSheet.


Features


  o Complex style sheets can be constructed in a logical (to me at least) way.
  o Static style sheets can be imported (And the importer may even remove some selector duplication).
  o You can now select that sections of the tree render only if the user is using a specific browser.
  o The style sheet renders in multiple ways depending on how it is called


    o &lt;dtml-var sheetname&gt; : Inserts a link rel tag into your page.
    o sheetname.tag        : Same
    o sheetname.style      : Inserts the sheet between &lt;style&gt; &lt;/style&gt; tags
    o sheetname.index_html : Returns the sheet with the Content-Type header text/css
    o sheetname.preview    : Renders the sheet as an html page so you can review it. It even insert a link rel tag at the top (Only really shows off H1, H2 and PRE).


Known Bugs


  o I have seen a few problems with importing very complex static style sheets.


To-Do


  o I welcome ideas, email me :- adrian@haqa.clara.net
