Hi everybody,

first I want to thank you for the super tool generateDS. It helped us a 
lot in the current project! 

I have problems with XSD restrictions on complex types.

Here is a sample XSD file:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
    targetNamespace="http://www.esa-grimma.de";
    xmlns:xs="http://www.w3.org/2001/XMLSchema";
    xmlns:tns="http://www.esa-grimma.de";
    elementFormDefault="qualified" version="1.0">
    <xs:element name="platform">
      <xs:complexType>
      <xs:sequence>
          <xs:element name="Output" type="tns:digOutputType"></xs:element>
      </xs:sequence>
      </xs:complexType>
    </xs:element>

    <xs:complexType name="ioType">
        <xs:attribute name="Name" type="xs:string" use="required"></
xs:attribute>
        <xs:attribute name="Invert" type="xs:boolean" use="optional"></
xs:attribute>
        <xs:attribute name="IsOutputOnStartup" type="xs:boolean" use=
"optional"></xs:attribute>
        <xs:attribute name="StartValue" type="xs:anySimpleType" use=
"optional"></xs:attribute>
    </xs:complexType>

    <xs:complexType name="digOutputType">
        <xs:complexContent>
            <xs:restriction base="tns:ioType">
                <xs:attribute name="StartValue" type="xs:boolean" use=
"optional" default="0"></xs:attribute>
                <xs:attribute name="IsOutputOnStartup" type="xs:boolean" 
use="prohibited"></xs:attribute>
            </xs:restriction>
        </xs:complexContent>
    </xs:complexType>
</xs:schema>


generateDS should generate digOutputType class with the members: Name, 
Invert and StartValue.
Instead I get StartValue and IsOutputOnStartup as members.

Type inheritance and member prohibition seems not to work.

I have tested with generateDS version 2.7b.


Best regards,

Sven

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to