Hello,
The simple use of the mediatype attribute would not be powerful enough
for XSLTForms users.
XSLTForms is already implementing RichText editors integration with a
definition of a dedicated schema type.
This definition allows to provide parameters of any kind to the
corresponding editor. Defining different types with different parameters
permits to have different rendering of RichText editors in the same
form. The corresponding schema can be shared between different forms
when stored in an independent file.
For example:
<simpleType name="standardHTML">
<restriction base="xsd:string" xsltforms:rte="TinyMCE"/>
<annotation>
<appinfo>
{
theme : "advanced",
skin : "o2k7",
plugins : "lists",
theme_advanced_buttons1 :
",bold,italic,underline,strikethrough,",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
}
</appinfo>
</annotation>
</simpleType>
Parameters are serialized into the appinfo element. This syntax has been
validated by the Schema Work Group.
XSLTForms can support different editors so its own rte attribute is used
to specify which one is associated with this schema type.
HTML is not the unique interesting possibility. For example, there are
also some Javascript libraries for editing different programming languages.
What do you think?
-Alain