I have an interesting implementation and I am trying to kill two birds with
one stone. In the wizard I am designing the user has the ability to choose
from one of n CSS style sheets to be applied to the end results of the
wizard. I am also thinking of supporting customization of the stylesheet
and this is where my question comes in. I have been commenting my
stylesheets using xml as a guide, for example
<data>
<name>Cool Blue</name>
<comment>yadda</comment>
<styleset name="common">
<styles>
<style name="gridTitle">This style is used to etc...</style>
<style name="gridBody">this style is....</style>
</styles>
<raw>
dummy{}
.gridTitle{font-size:10pt;color:red}
.gridBody{fonts-size:8pt;color:black}
</raw>
</styleset>
...more styleset nodes
</data>
You will notice that the actual styles are contained in the node raw. I have
found that if a create a dummy() empty style the following styles are
correctly picked up by the css parser on all modern browsers!!
So even though this xml/css crossbreed seems to work I wonder if there is a
set way of doing this that I am unaware of. I have done some research but
have not found anything so though I would ask all you smart people.
Cheers
Keith