Home     Serna Editor     Products     Downloads     Partners     About    
Syntext Serna: On-the-fly XML Schema Validation

Automatic Consistency

On-the-fly XML Schema validation ensures the user constantly works with valid, consistent documents. Serna automatically creates required elements and element choice lists. In the example below, Serna gives a list of available elements and builds required elements automatically (for convenience the example document is shown in "tag mode"):



Automatic insertion of required elements.
The "Choose" element requires the user to select an element from the list.
Click for a larger image.

The inserted element formalpara has the following content model:

<xs:element name='formalpara'>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref='title'/>
      <xs:element ref='indexterm' minOccurs='0' maxOccurs='unbounded'/>
      <xs:element ref='para'/>
    </xs:sequence>
  <xs:attributeGroup ref='common.attrib'/>
  <xs:attributeGroup ref='formalpara.role.attrib'/>
  </xs:complexType>
</xs:element>
    

Next >>