Breaking News

XSL elements Index

XSLT Functions

XSLT Functions XSLT includes over 100 built-in functions. There are functions for string values, numeric values, date and time comparison, node and QName manipulation, sequence manipulation, Boolean values, and more. Note: XQuery 1.0, XPath 2.0, and XSLT 2.0 …

Read More »

xsl:stylesheet or xsl:transform

<xsl:stylesheet> or <xsl:transform> The <xsl:stylesheet> or <xsl:transform> elements identify a complete stylesheet. They are completely synonymous. <xsl:stylesheet id = id extension-element-prefixes = tokens exclude-result-prefixes = tokens version = number> <!– Content: (xsl:import*, top-level-elements) –> </xsl:stylesheet> id  A unique …

Read More »

<xsl:template> <xsl:template match=”pattern” mode=”qname” name=”qname” priority=”number” > </xsl:template> The xsl:template element is used to define a template that can be applied to a node to produce a desired output display. There must be either a match or …

Read More »

xsl:apply-templates

<xsl:apply-templates> <xsl:apply-templates select=”expression” mode=”qname” > </xsl:apply-templates> The xsl:apply-templates element defines a set of nodes to be processed, or by default selects all child nodes of the current node being processed, and finds a matching template rule to …

Read More »

xsl:for-each

<xsl:for-each> <xsl:for-each select=”expression” /> </xsl:for-each> The xsl:for-each element loops through each node in a node set in itsr order of occurrence and applies the same template to each node. A node set is simply the collection of …

Read More »

xsl:call-template

<xsl:call-template> <xsl:call-template name=”qname” > </xsl:call-template> The xsl:call-template element is used to invoke a template by name. By invoke, we mean that the named template is called and applied to the source document. If a template does not …

Read More »

xsl:param

<xsl:param> <xsl:param name=”qname” > </xsl:param> Or: <xsl:param name=”qname” select=”expression” /> The xsl:param element is used to declare a local or global parameter and to give that parameter a name and a default value. The default value will be used …

Read More »

xsl:with-param

<xsl:with-param> <xsl:with-param name=”qname” > </xsl:param> Or: <xsl:with-param name=”qname” select=”expression” /> The xsl:with-param element is used to set the explicit value of a named parameter when using thexsl:apply-templates and the xsl:call-template elements. The concept is that the xsl:param element is used to …

Read More »

xsl:text

<xsl:text> <xsl:text disable-output-escaping=”yes” | “no” > </xsl:text> The xsl:text element is used to add literal text to the output. This element cannot contain any other XSLelements. It can only contain text. Normally, any text that occurs in a stylesheet …

Read More »

xsl:copy

<xsl:copy> <xsl:copy use-attribute-sets=”name-list” > </xsl:copy> The xsl:copy element copies the current node in the source document to the output. The copy has the same name, namespace, and type as the original node, but any attributes, children, and other descendants …

Read More »

xsl:copy-of

<xsl:copy-of> Syntax: <xsl:copy-of select=”expression” /> The xsl:copy-of element inserts a duplicate copy of a node set or tree fragment into the output. Perhaps the most important aspect of this element is that it allows you to …

Read More »

xsl:value-of

<xsl:value-of> <xsl:value-of select=”expression” disable-output-escaping=”yes” | “no” /> The xsl:value-of element is used to write or display in the result tree a string representation of the value assigned to a specified node. To explain it in another way, …

Read More »

xsl:element

<xsl:element> Syntax: <xsl:element name=”element-name” namespace=”URI” use-attribute-sets=”qname” > </xsl:element> The xsl:element element is used to create and name an element (node) that can appear in the output. This ability to create both custom elements and attributes, and to display the results, …

Read More »

xsl:if

<xsl:if> Syntax: <xsl:if test=”expression” > </xsl:if> The xsl:if element evaluates an expression which returns a Boolean result to determine if a template should be instantiated. The evaluation is a simple True or False test on a defined condition or a set of conditions. …

Read More »

xsl:choose

<xsl:choose> Syntax: <xsl:choose> <xsl:when test=”expression”> … </xsl:when> … <xsl:otherwise> … </xsl:otherwise> </xsl:choose> The xsl:choose element is used to make a choice when there are two or more possible courses of action. It provides a means for conducting …

Read More »