Tip XSLT Formatting Elements

The <xsl:for-each> and <xsl:value-of> elements used in the example stylesheet (Courses.xsl) in Figure 17-13 are only two of a number of XSLT formatting elements that are available for transforming raw XML data into HTML that the browser can display. Other XSLT elements allow you to define and apply templates for the output of elements (<xsl:tem-plate>, <xsl:apply-templates>,

<xsl:call-template>), create additional elements and attributes in the output file (<xsl:element>, <xsl:attribute>), and declare parameters and variables (<xsl:param>, <xsl:variable>), as well as provide you with several ways to perform conditional processing (<xsl:if>, <xsl:choose>). To find out more about XSLT elements, visit the following web site: http://www.w3.org/TR/xslt.

0 0

Post a comment