Documentation Center

Provide HTML elements for editable content

Each XML node needs to have an HTML element in the template in order to be editable.

You will have a problem if, for example, when a <xsl:template> in your XSL Stylesheet does not output an element but just copies text content to the output HTML. Knowledge Center will be unable to find the source content and the generated text will not be editable. For this reason, the general rule of thumb is that each template should generate an HTML element:

<xsl:template match="*">
<div class="generic-element">
<xsl:apply-templates />
</div>
</xsl:template>