No More HTML
Using Cascading Style Sheets (CSS) to present XML for the Web
Martin Holmes and Greg Newton (University of Victoria HCMC)
Workshop for CASTA 2006 in Fredericton, NB
- The presentation (HTML format)
- The handout (XML+CSS format)
- Workshop tasks:
- Task one: creating a stylesheet for a simple document
- Simple XML document (TEI XML)
- Screenshot of the above
document, as it should appear when its CSS stylesheet is created.
- Steps to follow:
- View the source of the document and save it to your local drive.
- Create a new stylesheet document.
- Add a processing instruction to the XML document, to link to your CSS file.
- Specify which elements to hide.
- Specify which elements are blocks.
- Set margins on block elements.
- Set text alignment on block elements.
- Set font size on block elements.
- Style inline elements.
- Our example stylesheet
- The document with stylesheet working
- Task 2: creating a more complex stylesheet