I mean that the css file that defines the classes you add to the xml file needs to be attached to the contents_insert.php and contents_update.php.
if your css file is named mystyles.css, then you need to add the refereance to it:
<link href="mystyles.css" rel="stylesheet" type="text/css" />
In the xml file, you are just adding the refferance to each style so it can be applied.
an example:
<Style name="RedText" element="span" >
<Attribute name="class" value="RedText" />
</Style>
this creates an element in the styles list with the name "RedText". It will apply to span tags (element="span"), using a class (<Attribute name="class").
When applied in the editor it will change:
"selected text"
to:
<span class="RedText">"selected text"</span>
lets say your css has the following styles
.RedDiv { color:red; }
#BlueSpan { color: blue; }
you would want to add the following in the xml:
<Style name="A Red Div" element="div" >
<Attribute name="class" value="RedDiv" />
</Style>
<Style name="A Blue Span" element="span" >
<Attribute name="id" value="BlueSpan" />
</Style>
selecting RedDiv would generate the following code:
<div class="RedDiv">"selected text"</div>
and BlueSpan would generate:
<span id="BlueSpan">"selected text"</span>