I read on your site that if you have a specialization (for DITA), the default CSS should be able to handle it because it looks at the class attributes.
I'm going to create a specialization, but just wanted to make sure this would work before I do it. So I tried the specialization made in the Lone DITA tutorial (if you know it). So that's a specialization of the task topic for recipes. It has the associations for the class attributes at the end of the mod file, like so:
Code: Select all
<!ATTLIST recipe %global-atts; class CDATA "- topic/topic task/task recipe/recipe " >
<!ATTLIST recipebody %global-atts; class CDATA "- topic/body task/taskbody recipe/recipebody" >
<!ATTLIST instructions %global-atts; class CDATA "- topic/ol task/steps recipe/ingredients" >
<!ATTLIST instruction %global-atts; class CDATA "- topic/li task/step recipe/instruction " >
<!ATTLIST ingredientlist %global-atts; class CDATA "- topic/ul recipe/ingredients" >
<!ATTLIST ingredient %global-atts; class CDATA "- topic/li recipe/ingredient " >
<!ATTLIST description %global-atts; class CDATA "- topic/section task/context recipe/description" >
<!ATTLIST serving %global-atts; class CDATA "- topic/section task/postreq recipe/serving" >
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE recipe SYSTEM "file:/C:/Users/Anders/Documents/AndersCom/Dita/tutorial/dtd/recipe.dtd">
<?xml-stylesheet type="text/css" href="../../../../../../../Program%20Files/Oxygen%20XML%20Editor%2011/frameworks/dita/css/task.css"?>
<recipe id="untitled" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/">
Am I doing something wrong?
Also, eventually I would of course want to have a template for this new specialization, and I wouldn't want to have to set the CSS manually each time to edit a new file. So how can I set the CSS permanently for a specific specialization and its template?