PPT Slide
2. A description of how to present transformed information :
This can take one of three levels of formatting :
- specification of the general screen or page layout
- assignment of the transformed text into basic “content container types” (e.g. lists, paragraphs etc)
- specification of formatting properties (spacing, margins, alignment, fonts, etc.)
It should be borne in mind that XSL is a complete programming language in its own right, which provides its own (different) syntax to those already presented. Suffice to say that XSL generally follows the format :
<xsl:template match=“pattern”>
A typical example of an XSL file might look like the following :
<xsl:template match=“/”> [action] </xsl:template>
<xsl:template match=“BookCatalogue”> [action] </xsl:template>
<xsl:template match=“Book”> [action] </xsl:template>
match=“/” applies to whole document
Match each subsequent child of root element