Should also be able to do:
<%= CMS.DocumentEngine.DocumentContext.CurrentDocument.GetValue<string>("CSSClass", "DefaultValue") %>
May or may need the CMS.DocumentEngine portion of the above, since it may be already there, or you can use a <%@ Import Namespace="CMS.DocumentEngine" %> on top of the transformation