XsdSpec
Use this element to specify properties of the XML schema generated from the data structures.
These XML
schemas can be used for validation by an XML transformation; for example, CICS® 4.1 XMLTRANSFORM resource.
Note: XsdSpec
CANNOT be specified with:
Contained by
XseSpecContains
NoneAttributes
Table 1 shows the attributes for XsdSpec.
Fields | Description |
---|---|
Attribute: fileName
Valid values: See Description Required?: No Default value: See Description |
Specifies the name of the output file. The default value is: Data source file name concatenated with "X" |
Attribute: localNamespace
Valid values: See Description Required?: No Default value: See Description |
Specifies the local namespace. Note: Request
namespaces have no effect on the code generated in the converter.
The default value is: http://www.w3.org/2001/XMLSchema |
Attribute: overwrite
Valid values: true | false Required?: No Default value: true |
Specifies whether to overwrite the output file if it exists. |
Attribute: targetNamespace
Valid values: See Description Required?: No Default value: See Description |
Specifies the target namespace. The default value is: For a data source file name foo: http://www.fooI.com/schemas/fooIInterface |
Attribute: whitespace
Valid values: collapse | replace | preserve | compat Required?: No Default value: collapse |
The value of this attribute directs the Batch
processor to generate XML Schemas and XML converter programs that
support the three standard whitespace processing options in XML Schema:
"preserve", "replace", and "collapse". Every element in the generated
XML Schema is assigned the value of this attribute for its whiteSpace
option. To direct the Batch processor to generate XML Schemas and XML converter programs that are compatible with releases prior to version 7.5, specify the value "compat". |
Attribute: xsdElemName
Valid values: See Description Required?: No Default value: See Description |
Specifies the global element name for the schema. The default value is: Value of the nativeTypeName attribute in the message specification. |
Attribute: xsdNamespace
Valid values: See Description Required?: No Default value: See Description |
Specifies the xsd namespace. The default value is: Value of the nativeTypeName attribute in the message specification. |
Attribute: xsdPrefix
Valid values: See Description Required?: No Default value: cbl |
Specifies the xsd namespace prefix. |
Example
Figure 1 is an example of XseSpec element.<XsdSpec fileName="sample.xsd" overwrite="true"
targetNamespace="http://www.DFH0CSTDI.com/schemas/DFH0CSTDIInterface"
xsdNamespace="http://www.w3.org/2001/XMLSchema"
localNamespace="http://www.DFH0CSTDI.com/schemas/DFH0CSTDIInterface"
xsdPrefix="cbl"
xsdElemName="dfhcommarea"/>