Content and Presentation
Prev
Next

Content and Presentation

One of the basic principles behind the use of DocBook in TDE is that content and presentation are strictly separated. DocBook files contain the content, and XSL files contain the information about presentation. This has a number of advantages, some of which are:

In practice, this means that you should add markup that describes what things are and not how they should appear. So, in the example above, the <keycombo> (a keyboard shortcut) tells the reader (or computer) that the keys Ctrl, Alt and V should be pressed simultaneously, but doesn't say anything about how that should be displayed in the final output. (In fact, it appears as “Ctrl+Alt+V”, but it could equally be converted to “C-M-V” à la Emacs or even some other way of showing keyboard shortcuts. What's important is that the DocBook source has the information necessary to work out what is being referred to.)

Prev
Next
Home


Would you like to comment or contribute an update to this page?
Send feedback to the TDE Development Team