Input_Whitespace_and_Output_Serialization

xsl:preserve-space

<xsl:preserve-space> The xsl:preserve-space element is used to keep white-space only nodes in the output. Note that the default is to leave white-space only nodes. Therefore, it is only necessary to use the xsl:preserve-space element when you use the xsl:strip-space element and wish to insure that certain white-space nodes are not removed. By white-space, we refer to carriage returns, line feeds, spaces …

xsl:preserve-space Read More »

xsl:strip-space

<xsl:strip-space> The xsl:strip-space element is used to remove white-space only nodes so that they do not appear in the output. By white-space, we refer to carriage returns, line feeds, spaces and tabs. No text or numbers appear in the node. The related xsl:preserve-space element is used to keep white-space only nodes in the output. Note that the default is …

xsl:strip-space Read More »

xsl:output

<xsl:output> The xsl:output element is used to define the format of the output created by the stylesheet. This is accomplished by setting one or more of ten optional attributes. The most important of these ten attributes is the method attribute which dictates if the type of output is HTML, text, or XML. The type of …

xsl:output Read More »

xsl:namespace-alias

<xsl:namespace-alias> <xsl:namespace-alias stylesheet-prefix=”prefix” result-prefix=”prefix” /> The xsl:namespace-alias element is used to replace a namespace (prefix) in a stylesheet with a different namespace (prefix) for use in the output. There must be one xsl:namespace-alias element for each namespace you wish to change. In general, the primary use for this element is to convert non-XSLT elements (literal result elements) into XSLT elements for display …

xsl:namespace-alias Read More »

Scroll to Top