XSLT - Output instructions

 

These elements are used to send various things to the output your stylesheet is producing.

     xsl:text: Output literal text
     xsl:value-of: Output the value of an expresssion
     xsl:element: Output an element
     xsl:attribute: Output an attribute
     xsl:number: Output an element number or formatted number


xsl:text: Output literal text

To send some text to the output, embed that text in the content of an xsl:text element. For example, this would send the text "not", followed by a newline, followed by the text "insane":

    <xsl:text>not
insane</xsl:text>

There is one optional attribute:

disable-output-escaping

    For output to XML or HTML, special characters like "<" are translated to their escaped equivalents, such as "&lt;. If your xsl:text element has attribute disable-output-escaping="yes", however, such characters will be sent as is, untranslated. The default value is "no". This option is ignored for text output.

     
    xsl:value-of: Output the value of an expresssion

    To output the string equivalent of some XPath expression, use this element. Attributes:

    select (required)

        The XPath expression to be evaluated.
    disable-output-escaping

        See xsl:text.

    For example, suppose you have defined a variable named lap-count and it currently has a value of 32. This element would place the text "33" in the output:

        <xsl:value-of select="$lap-count+1"/>
source: http://infohost.nmt.edu/~shipman/doc/xslt/web/output-elts.html”