Name

<xsl:preserve-space>

Synopsis

<xsl:preserve-space element=" element_name "/>

Description

Declares an XML element in which all whitespace located between its opening and closing tags is preserved; hence, the XML processor will not remove it.

<xsl:preserve-space element="title"/>

This is similar to the xml:space=preserve attribute.

Get Webmaster in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.