[xsd-users] Wrong mapping?

bruno.marotta at fortis.com bruno.marotta at fortis.com
Fri May 16 05:19:58 EDT 2008


Hi,

I have the following xsd

	<xsd:complexType name="Identifiers">
		<xsd:sequence>
			<xsd:element name="type" type="xsd:string" minOccurs="0" />
			<xsd:element name="identifier" type="fortis:Identifier" />
		</xsd:sequence>
	</xsd:complexType>
...
	<xsd:complexType name="Identifier">
		<xsd:annotation>
			<xsd:documentation>
			Enables to identify a fortis entity from its name in a system.
			This is used to make a reference to a fortis Entity.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:attributeGroup ref="fortis:IdentifierAttributes.atts" />
	</xsd:complexType>

The xsd cxx-tree is mapping the Identifiers type to:

class __declspec(dllexport) Identifiers: public ::xml_schema::type
  {
    public:
    ...

    // identifier
    // 
    typedef ::xml::Identifier identifier_type;
    typedef ::xsd::cxx::tree::traits< identifier_type, char > identifier_traits;

    const identifier_type&
    identifier () const;

    identifier_type&
    identifier ();

    void
    identifier (const identifier_type& x);

    void
    identifier (::std::auto_ptr< identifier_type > p);
	
    ...  
  };

The question is: Shouldn't the identifier_type be a sequence?

Thanks,

Bruno Marotta

IS GMK Equity & Capital Markets
ISE - Information Systems
Fortis Bank Belgium

Tel: +32 2 312 01 43
E-mail: bruno.marotta at fortis.com
Mail : Montagne du Parc - 3 - Warandeberg, B-1000 Brussels, Belgium

-------------- next part --------------

= = = = = = = = = = = = = = = = = = = = = = = = =
Fortis disclaimer :
http://www.fortis.be/legal/disclaimer.htm

Privacy policy related to banking activities of Fortis:
http://www.fortis.be/legal/privacy_policy.htm
= = = = = = = = = = = = = = = = = = = = = = = = =



More information about the xsd-users mailing list