class attribute for <li> is not supported by eZXML filed which you using.
Here you can find complete list of supported tags: http://ez.no/doc/ez_publish/technical_manual/3_6/reference/xml_tags
If want to use plain xhtml, you will need to extend your class with new attribute e.g "html filed" (Text filed datatype). However this is not recommend content storage.