Problems with group support as of SNAPSHOT 0621.
------------------------------------------------

                 Key: AXIS2-2833
                 URL: https://issues.apache.org/jira/browse/AXIS2-2833
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb, databinding
    Affects Versions: nightly
            Reporter: Andreas Schörk


Hello I tried to create a binding for the XML-Schema below using the new group 
support (refering to Mailing List Message from 05/31).

1. The group in complexType attribute only gets recognized if it is surround by 
<xsd:sequence>...</xsd:sequence>.
2. complexType-vector: the surrounding is also necessary. maxoccurs is not 
recognized, so no Array is created.
3. if I put minOccurs, maxOccurs into the new surrounding sequence, a 
DataTypes0-Object is created like DataTypes but yet no Array.

regards
Andreas



First version of the xml-schema: 

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
        targetNamespace="http://www.example.org/efcd_data_types";
        xmlns:tns="http://www.example.org/efcd_data_types";
        elementFormDefault="qualified">
        <!-- attribute -->
        <xsd:complexType name="attribute">
                
                <xsd:group ref="tns:data-types" />
                
                <xsd:attribute name="key" type="xsd:string" use="required" />
        </xsd:complexType>
        <!-- data-types -->
        <xsd:group name="data-types">
                <xsd:choice>
                        <xsd:element name="b" type="tns:boolean" />
                        <xsd:element name="i8" type="tns:byte" />
                        <xsd:element name="i16" type="tns:short" />
                        <xsd:element name="i32" type="tns:int" />
                        <xsd:element name="i64" type="tns:long" />
                        <xsd:element name="f32" type="tns:float" />
                        <xsd:element name="f64" type="tns:double" />
                        <xsd:element name="ch" type="tns:char" />
                        <xsd:element name="str" type="tns:string" />
                        <xsd:element name="bin" type="tns:binary" />
                        <xsd:element name="dict" type="tns:dictionary" />
                        <xsd:element name="vect" type="tns:vector" />
                </xsd:choice>
        </xsd:group>
        <!-- boolean -->
        <xsd:complexType name="boolean">
                <xsd:attribute name="val" type="xsd:boolean" use="required" />
        </xsd:complexType>
        <!-- byte -->
        <xsd:complexType name="byte">
                <xsd:attribute name="val" type="xsd:byte" use="required" />
        </xsd:complexType>
        <!-- short -->
        <xsd:complexType name="short">
                <xsd:attribute name="val" type="xsd:short" use="required" />
        </xsd:complexType>
        <!-- int -->
        <xsd:complexType name="int">
                <xsd:attribute name="val" type="xsd:int" use="required" />
        </xsd:complexType>
        <!-- long -->
        <xsd:complexType name="long">
                <xsd:attribute name="val" type="xsd:long" use="required" />
        </xsd:complexType>
        <!-- float -->
        <xsd:complexType name="float">
                <xsd:attribute name="val" type="xsd:float" use="required" />
        </xsd:complexType>
        <!-- double -->
        <xsd:complexType name="double">
                <xsd:attribute name="val" type="xsd:double" use="required" />
        </xsd:complexType>
        <!-- character -->
        <xsd:simpleType name="character">
                <xsd:restriction base="xsd:string">
                        <xsd:length value="1" />
                </xsd:restriction>
        </xsd:simpleType>
        <!-- char -->
        <xsd:complexType name="char">
                <xsd:attribute name="val" type="tns:character" use="required" />
        </xsd:complexType>
        <!-- string -->
        <xsd:complexType name="string">
                <xsd:attribute name="val" type="xsd:string" use="required" />
        </xsd:complexType>
        <!-- binary -->
        <xsd:complexType name="binary">
                <xsd:attribute name="val" type="xsd:base64Binary"
                        use="required" />
        </xsd:complexType>
        <!-- dictionary -->
        <xsd:complexType name="dictionary">
                <xsd:sequence>
                        <xsd:element name="attr" type="tns:attribute" 
minOccurs="0"
                                maxOccurs="unbounded" />
                </xsd:sequence>
        </xsd:complexType>
        <!-- vector -->
        <xsd:complexType name="vector">
                        <xsd:group ref="tns:data-types" minOccurs="0"
                                maxOccurs="unbounded" />
        </xsd:complexType>

</xsd:schema> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to