Documentation Center

Mark parts of the document as non-editable in the schema

Use the schema to mark parts of documents as non-editable.

It may be desirable to mark parts of the document as non-editable to Content Editor so that authors cannot edit those parts. Nodes are marked non-editable in the XSL Stylesheet by using an XPath expression, such as string() in an <xsl:value-of select="."/> statement. This construction causes Content Editor to lose sight of the content source, and therefore Content Editor is unable to make the target editable.

<xsl:value-of select="string(.)"/>

It is also possible to use the API to ensure authors can only edit certain parts of documents. This method is explained in a separate topic: How to prevent structure changes using the API.