ephox:readonly Attribute

Introduction

The ephox:readonly attribute allows values to be displayed without making them editable by the user. The value appears in the output as plain text exactly as it would if run through a standard XSLT processor. The ephox:readonly attribute can only be used on value-of elements.

By default elements from an XML document rendered in EditLive! for XML are editable.

Possible Values

The ephox:readonly attribute requires a boolean value of either true or false.

When set to true EditLive! for XML will display the value of the relevant element as plain text which will not be editable.

When set to false EditLive! for XML will display the value of the relevant element from the XML as an editable field.

Example

The example below inserts the value of the context node into the display without making it editable.

<xs:value-of select="." ephox:readonly="true"
  xmlns:ephox="http://www.ephox.com/product/editliveforxml/1.0" />