21. Compile and Deploy
• With Theme HTML and Rule in hand, you can
compile these using the Diazo compiler into a
single XSLT file.
• You can then deploy this XSLT file with your
application.
• An XSLT processor (such as mod_transform in
Apache) will then transform the dynamic content
from your website into the themed content your
end users see.
• The transformation takes place on-the-fly for each
request.
24. Replacing Page Title
and Main Content
<replace css:theme="html head title"
css:content="html head title"/>
<replace css:theme-children=".blog .content"
css:content-children="#content"/>
25. Including Content’s Scripts
and Meta Data
<before css:theme-children="html head"
css:content="html head script" />
<before css:theme-children="html head“
css:content="html head meta" />
30. Some Other Scenario
• Management Interface Usually
Needs a Vanilla or Separate Face
• Maintain and Serve Themes in
Version Control System
• Keep Organization Themes Looking
Consistent
• 豬皮龍骨 Ya!
31. Conclusion
• Make Use of the Unique CSS Bits
• Use Example Codes / Recipes First
for Learning, then Use Editor For
Obvious Tasks
• Resource: QAs on StackOverflow
<… css:if-content=“.template-controlpanel” />