TOC PREV NEXT INDEX


Global <bindings> Declaration



The customization values in the "<bindings>" binding declaration have global scope. These affect all elements within all schemas defined in the compilation project.

Usage

 
<bindings version="1.0">
 
	[<prefix>xs:token</prefix>]
 
	[<schemaBindings>. . .</schemaBindings>]
 
	[<nameXmlTransform>. . .</nameXmlTransform>]
 
	[<doubleFormat/>]
 
	[<decimalFormat/>]
 
	[<floatFormat/>]
 
	[<typemap>. . .</typemap>]
 
	...
 
</bindings>
 

 
The following attributes are defined for the <bindings> node:
version:
See the section "Version Attribute" above for details.

 

The following customization elements may be defined within the global scope:
prefix:
This is used to specify a prefix that is prepended to all XML names including type names and global element names to form C/C++ type and variables names. It should be a legal C/C++ identifier.
 
schemaBindings:
This is used to identify individual schemas for schema scope binding declarations (see Section "<schemaBindings> Declaration"). It can be specified multiple times, but once per schema.
nameXmlTransform:
This is used to perform more accurate XML names transformation than prefix allows. See Section "Advanced XML Names Transformation" for further details.
 
doubleFormat:
This specifies a default (global) format for encoding of values of "double" type. See Section "XML Numeric Values Format Specification".
 
decimalFormat:
This specifies a default (global) format for encoding of values of "decimal" type See Section "XML Numeric Values Format Specification".
 
floatFormat:
This specifies a default (global) format for encoding of values of "float" type. See Section "XML Numeric Values Format Specification".
 
typemap:
This specifies a default (global) mapping of a specific XSD type to a C type (see Section "<typemap> Declaration"). It can be specified multiple times. In each typemap declaration, a list of XSD types separated by space can be mapped to one C type.
 


Copyright © Objective Systems 2002-2008
This document may be distributed in any form, electronic or otherwise, provided that it is distributed in its entirety and that the copyright and this notice are included.

Objective Systems, Inc.

55 Dowlin Forge Road
Exton, Pennsylvania 19341
http://www.obj-sys.com
Phone: (484) 875-9841
Toll-free: (877) 307-6855 (US only)
Fax: (484) 875-9830
info@obj-sys.com

TOC PREV NEXT INDEX