Schemas
Schemas define elements that can be displayed in the report:
- attributes that can be displayed in a document
- which elements are child elements
- order of child elements
- number of child elements
- whether an element is empty or can include text
- data types for elements and attributes
- default and fixed values for elements and attributes
For example, a schema for an object defines if a field is a string, number, or date. Without this information, the report is generated as all strings. This may not provide a usable format.
Data as String:
2015-06-24T 20:23:18
(This is the ISO-defined date format that is used by the XML.)
Data as Date as specified in the XSD
6/24/2015
Schemas for reports
Report schemas enable you to define the fields in the report XML file (job file), such as name, title, language, and input parameters.
The report XSD defines fields for the report XML (job file).
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="report">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string" nillable="true"/>
<xs:element name="title">
<xs:complexType>
<xs:attribute name="lang" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="job" type="xs:string" nillable="true"/>
<xs:element name="user" type="xs:string" nillable="true"/>
<xs:element name="passwd" type="xs:string" nillable="true"/>
<xs:element name="presservername" type="xs:string" nillable="true"/>
<xs:element name="servercookie" type="xs:string" nillable="true"/>
<xs:element name="tmpdir" type="xs:string" nillable="true"/>
<xs:element name="objsymbol" type="xs:string" nillable="true"/>
<xs:element name="objdtls" type="xs:string" nillable="true"/>
<xs:element name="xmlstyle" type="xs:string" nillable="true"/>
<xs:element name="defaultmode" type="xs:string" nillable="true"/>
Schemas for Object data
During the design phase, you define Optiva data for reports by exporting symbols to XSD files.
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="fsxml" xmlns=""
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:msprop="urn:schemas-microsoft-com:xml-msprop">
<xs:element name="fsxml" msdata:IsDataSet="true">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="FSFORMULA"><xs:complexType><xs:sequence>
<xs:element name="FORMULA_CODE" default="@DFLTGLOBAL" msdata:Ordinal="0">
<xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="32" />
</xs:restriction></xs:simpleType></xs:element>
<xs:element name="VERSION" default="@DFLT"
msdata:Ordinal="1"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength
value="10" /></xs:restriction></xs:simpleType></xs:element>
<xs:element name="DESCRIPTION" default="."
msdata:Ordinal="2"><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength
value="90" /></xs:restriction></xs:simpleType></xs:element>