XSL

xsl:message

<xsl:message> Syntax: <xsl:message terminates=”yes” | “no” > </xsl:message> The xsl:message element is primarily used to report errors by displaying a text message and related information of interest in the output. This element can contain almost any other XSL element. For example, you can use the xsl:text element to add literal text to the xsl:message element and you can use the xsl:value-of element to display …

xsl:message Read More »

xsl:variable

<xsl:variable> Syntax: <xsl:variable name=”qname” > </xsl:variable> Or:  <xsl:variable name=”qname” select=”expression” /> The xsl:variable element is used to declare a local or global variable and to give that variable a name and a value. The value can be assigned by either the content of the xsl:variable element or by the select attribute, but not by both. Each variable declaration requires …

xsl:variable Read More »

xsl:decimal-format

<xsl:decimal-format> Syntax: <xsl:decimal-format decimal-separator=”character” digit=”character” grouping-separator=”character” infinity=”string” minus-sign=”character” name=”qname” NaN=”string” pattern-separator=”character” percent=”character” per-mille=”character” zero-digit=”character” /> The xsl:decimal-format element defines the symbols and characters used by the format-number function to convert numbers to strings. This element can be used more than once, but with certain limitations. Each element can have an optional name value assigned to it by …

xsl:decimal-format Read More »

xsl:key

<xsl:key> Syntax: <xsl:key match=”pattern” name=”qname” use=”expression” > </xsl:key> The xsl:key element is used to declare a named key that can be used by the key function in expressions and patterns. The key function has two arguments: the key name and the value (consider this to be a key-value pair). The appropriate use of these key-value pairs can …

xsl:key Read More »

xsl:fallback

<xsl:fallback> Syntax: <xsl:fallback> </xsl:fallback> The xsl:fallback element is designed to provide fallback code that can be run as an alternative when an XSLT processor fails to support an element. Normally, when an XSLT element is not recognized by the XSLT processor an error occurs. The concept behind the xsl:fallback element is to provide a mechanism that will allow a procedure to keep running whenever an XSLT element …

xsl:fallback Read More »