XPE Schema Element

Description

The Schema is a child element of the form element. The currently supported schema languages are:

  • W3C XDS Schema;
  • Relax-NG Schema;
Any number of schema elements may be defined and then associated to instance data elements by name from within the instance data element.

Attributes

Attribute nameDescription
name
This attribute names the schema. By convention this names is in the form of a uri such as: http://example.com/authentication.xsd
src
This attribute specifies the actual location of the schema file.
reload
This attribute is used during development to stop the XPE Forms engine from cacheing the schema (reload="true"). During development the schema may change and if the XPE Forms engine cached the schema, then changes to the schema would have no effect. Once development is complete, this attribute should be set to "false" to enable cacheing of the schema and ensure efficiency.

   <xf:schema  name="http://example.com/authentication.xsd"  src="http://localhost:8188/xpe/xsd/authentication.xsd"  reload="false"  xmlns:xf="http://www.xmlpipe.org/xpe/form" />