Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Bug in substituitionGroupAffiliation?
Bug in substituitionGroupAffiliation? [message #47680] Wed, 09 June 2004 08:40 Go to next message
Eclipse UserFriend
Originally posted by: invalid.soft-gems.net

Hello Ed,

Today I found something, which looks to me like a bug. Suppose I have the
following element declarations:

<xs:element name="label" type="controlType_text"
substitutionGroup="odie:tdGroup"/>
<xs:element name="datelabel" type="controlType_text"
substitutionGroup="odie:tdGroup"/>
<xs:element name="decimallabel" type="controlType_text"
substitutionGroup="odie:tdGroup"/>
<xs:element name="policylabel" type="controlType_text"
substitutionGroup="odie:tdGroup"/>
<xs:element name="combobox" type="controlType_combobox"
substitutionGroup="odie:tdGroup"/>
<xs:element name="scrollbar" type="controlType_scrollbar"
substitutionGroup="odie:tdGroup"/>

For all of them the XSD package creates a proper
substitutionGroupAffiliation set except for the scrollbar type, although
it has the same substitionGroup set as the other controls. I don't
understand why this happens. Do you have an idea?

Mike
--
www.soft-gems.net
Re: Bug in substituitionGroupAffiliation? [message #47711 is a reply to message #47680] Wed, 09 June 2004 10:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Mike,

I can't say much with only an incomplete example to look at.


Mike Lischke wrote:

> Hello Ed,
>
> Today I found something, which looks to me like a bug. Suppose I have the
> following element declarations:
>
> <xs:element name="label" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="datelabel" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="decimallabel" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="policylabel" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="combobox" type="controlType_combobox"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="scrollbar" type="controlType_scrollbar"
> substitutionGroup="odie:tdGroup"/>
>
> For all of them the XSD package creates a proper
> substitutionGroupAffiliation set except for the scrollbar type, although
> it has the same substitionGroup set as the other controls. I don't
> understand why this happens. Do you have an idea?
>
> Mike
> --
> www.soft-gems.net
Re: Bug in substituitionGroupAffiliation? [message #47742 is a reply to message #47711] Wed, 09 June 2004 11:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: invalid.soft-gems.net

Ed,

> I can't say much with only an incomplete example to look at.

I was afraid you would say something like that :-) but my hope was that
you would ask for a certain detail, which enlights the problem. Anyway,
here is the relevant schema. It is, for my taste, a bit too large for a
newsgroup posting but I post it with pleasure if you can find the mistake
I made therein. In any case I'm very happy that you take the time to look
at this. Thank you very much, Ed.

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://msgax1i.msg.de/afis/layout"
xmlns="http://msgax1i.msg.de/afis/layout"
xmlns:odie="http://msgax1i.msg.de/afis/odie"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:annotation>
<xs:documentation xml:lang="de">
Copyright 2004 msg systems ag. All rights reserved.
</xs:documentation>
</xs:annotation>
<xs:import namespace="http://msgax1i.msg.de/afis/odie"
schemaLocation="odie.xsd"/>
<xs:element name="layout">
<xs:complexType>
<xs:sequence>
<xs:element name="standard" type="layoutContent"/>
<xs:element name="custom" type="layoutContent" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="layoutContent">
<xs:sequence>
<xs:element ref="title" minOccurs="0"/>
<xs:element ref="toolbar"/>
<xs:element ref="page" maxOccurs="unbounded"/>
<xs:element ref="status" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="title">
<xs:complexType>
<xs:sequence>
<xs:element ref="datasource" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- ########################################################### -->
<!-- tableGroup -->
<xs:element name="toolbar" substitutionGroup="odie:tableGroup"/>
<xs:element name="page" substitutionGroup="odie:tableGroup">
<xs:complexType>
<xs:complexContent>
<xs:extension base="odie:tableType">
<xs:attribute name="cols" type="xs:positiveInteger"
default="80"/>
<xs:attribute name="rows" type="xs:positiveInteger"
default="20"/>
<xs:attribute name="id" type="xs:positiveInteger"
use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="status" substitutionGroup="odie:tableGroup"/>
<!-- ########################################################### -->
<!-- trGroup -->
<!-- ########################################################### -->
<!-- tdGroup -->
<xs:element name="input" type="controlType_text_focusable"
substitutionGroup="odie:tdGroup"/>
<xs:element name="dateinput" type="controlType_text_focusable"
substitutionGroup="odie:tdGroup"/>
<xs:element name="decimalinput" type="controlType_text_focusable"
substitutionGroup="odie:tdGroup"/>
<xs:element name="policyinput" type="controlType_text_focusable"
substitutionGroup="odie:tdGroup"/>
<xs:element name="label" type="controlType_text"
substitutionGroup="odie:tdGroup"/>
<xs:element name="datelabel" type="controlType_text"
substitutionGroup="odie:tdGroup"/>
<xs:element name="decimallabel" type="controlType_text"
substitutionGroup="odie:tdGroup"/>
<xs:element name="policylabel" type="controlType_text"
substitutionGroup="odie:tdGroup"/>
<xs:element name="combobox" type="controlType_combobox"
substitutionGroup="odie:tdGroup"/>
<xs:element name="inputcombobox" type="controlType_inputcombobox"
substitutionGroup="odie:tdGroup"/>
<xs:element name="toolbutton" type="controlType_toolbutton"
substitutionGroup="odie:tdGroup"/>
<xs:element name="button" type="controlType_button"
substitutionGroup="odie:tdGroup"/>
<xs:element name="radiobutton" type="controlType_radiobutton"
substitutionGroup="odie:tdGroup"/>
<xs:element name="checkbox" type="controlType_checkbox"
substitutionGroup="odie:tdGroup"/>
<xs:element name="afistable" type="controlType_afistable"
substitutionGroup="odie:tdGroup"/>
<xs:element name="menu" type="menuType"
substitutionGroup="odie:tdGroup"/>
<xs:element name="scrollbar" type="controlType_scrollbar"
substitutionGroup="odie:tdGroup"/>
<xs:complexType name="controlType">
<xs:complexContent>
<xs:extension base="odie:tdType">
<xs:sequence>
<xs:element ref="datasource"/>
<xs:element name="tooltip" type="datasourceType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_scrollbar">
<xs:complexContent>
<xs:extension base="controlType"/>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_focusable">
<xs:complexContent>
<xs:extension base="controlType">
<xs:attribute name="tabindex" type="xs:nonNegativeInteger"
use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_text">
<xs:complexContent>
<xs:extension base="controlType">
<xs:attribute name="style" default="standard">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="standard"/>
<xs:enumeration value="emphasis"/>
<xs:enumeration value="nonprop"/>
<xs:enumeration value="nonprop_emphasis"/>
<xs:enumeration value="description"/>
<xs:enumeration value="header"/>
<xs:enumeration value="status"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="align" default="left">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="left"/>
<xs:enumeration value="center"/>
<xs:enumeration value="right"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_text_focusable">
<xs:complexContent>
<xs:extension base="controlType_text">
<xs:attribute name="tabindex" type="xs:nonNegativeInteger"
use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_combobox">
<xs:complexContent>
<xs:extension base="controlType_text_focusable">
<xs:sequence>
<xs:element name="itemlist" minOccurs="0">
<xs:complexType>
<xs:choice>
<xs:element ref="datasource"/>
<xs:sequence>
<xs:element name="item" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="key" type="datasourceType"/>
<xs:element name="value" type="datasourceType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:choice>
<xs:attribute name="rows" type="xs:positiveInteger"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_inputcombobox">
<xs:complexContent>
<xs:extension base="controlType_combobox">
<xs:attribute name="inputcolspan" type="xs:positiveInteger"
use="required"/>
<xs:attribute name="comboboxcolspan" type="xs:positiveInteger"
use="required"/>
<xs:attribute name="deprecated_inputid" type="xs:string"
use="required"/>
<xs:attribute name="deprecated_inputtabindex" type="xs:string"
use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_checkbox">
<xs:complexContent>
<xs:extension base="controlType_focusable">
<xs:sequence>
<xs:element name="selectvalue" type="datasourceType"/>
<xs:element name="unselectvalue" type="datasourceType"/>
<xs:element name="undefinedvalue" type="datasourceType"
minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_radiobutton">
<xs:complexContent>
<xs:extension base="controlType_focusable">
<xs:sequence>
<xs:element name="selectvalue" type="datasourceType"
minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_toolbutton">
<xs:complexContent>
<xs:extension base="controlType">
<xs:sequence>
<xs:element name="selectvalue" type="datasourceType"/>
<xs:element name="icon" type="datasourceType"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_button">
<xs:complexContent>
<xs:extension base="controlType_focusable">
<xs:sequence>
<xs:element name="buttonvalue" type="datasourceType"
minOccurs="0"/>
<xs:element name="action" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="param" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element ref="datasource"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string"
use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="ref" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="buttontext" type="datasourceType"
minOccurs="0"/>
<xs:element name="buttonimage" type="datasourceType"
minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_afistable">
<xs:complexContent>
<xs:extension base="odie:tdType">
<xs:sequence>
<xs:element name="tooltip" type="datasourceType" minOccurs="0"/>
<xs:element name="column" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="header" type="datasourceType"
minOccurs="0"/>
<xs:element ref="odie:tdGroup" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="scrollbar" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element ref="datasource"/>
<xs:element name="amount" type="datasourceType"/>
<xs:element name="upvalue" type="datasourceType"/>
<xs:element name="downvalue" type="datasourceType"/>
<!--xs:element name="visible" minOccurs="0" maxOccurs="1"
/-->
</xs:sequence>
<xs:attribute name="orientation" default="vertical">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="vertical"/>
<xs:enumeration value="horizontal"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="tablebutton" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="selectvalue" type="datasourceType"/>
<xs:element name="text" type="datasourceType"/>
<xs:element name="tooltip" type="datasourceType"
minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="rows" type="xs:positiveInteger"
use="required"/>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="menuType">
<xs:complexContent>
<xs:extension base="odie:tdType">
<xs:sequence>
<xs:choice>
<xs:element name="icon" type="datasourceType"/>
<xs:element name="text" type="datasourceType"/>
</xs:choice>
<xs:element name="menuitem" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:complexContent>
<xs:extension base="controlType">
<xs:sequence>
<xs:element name="text" type="datasourceType"/>
<xs:element name="selectvalue" type="datasourceType"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<!-- ########################################################### -->
<xs:complexType name="datasourceType">
<xs:sequence>
<xs:element ref="datasource"/>
</xs:sequence>
</xs:complexType>
<xs:element name="datasource">
<xs:complexType>
<xs:choice>
<xs:element name="const">
<xs:complexType>
<xs:attribute name="value" type="EmptyStringType"
use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="beandata">
<xs:complexType>
<xs:sequence>
<xs:element name="idref">
<xs:complexType>
<xs:sequence>
<xs:element ref="datasource"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="file">
<xs:complexType>
<xs:sequence>
<xs:element name="url">
<xs:complexType>
<xs:sequence>
<xs:element ref="datasource"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="tablerequest">
<xs:complexType>
<xs:sequence>
<xs:element ref="datasource"/>
<xs:element name="where" type="datasourceType" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:simpleType name="noEmptyStringType">
<xs:restriction base="xs:string">
<xs:pattern value=".+"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="EmptyStringType">
<xs:restriction base="xs:string">
<xs:pattern value=".*"/>
</xs:restriction>
</xs:simpleType>
<!-- ########################################################### -->
</xs:schema>

Mike
--
www.soft-gems.net
Re: Bug in substituitionGroupAffiliation? [message #47773 is a reply to message #47742] Wed, 09 June 2004 11:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Mike,

I need odie.xsd too.

Is it possible that you confusing the global scrollbar element with the local
one in "controlType_afistable?


Mike Lischke wrote:

> Ed,
>
> > I can't say much with only an incomplete example to look at.
>
> I was afraid you would say something like that :-) but my hope was that
> you would ask for a certain detail, which enlights the problem. Anyway,
> here is the relevant schema. It is, for my taste, a bit too large for a
> newsgroup posting but I post it with pleasure if you can find the mistake
> I made therein. In any case I'm very happy that you take the time to look
> at this. Thank you very much, Ed.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema targetNamespace="http://msgax1i.msg.de/afis/layout"
> xmlns="http://msgax1i.msg.de/afis/layout"
> xmlns:odie="http://msgax1i.msg.de/afis/odie"
> xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
> attributeFormDefault="unqualified">
> <xs:annotation>
> <xs:documentation xml:lang="de">
> Copyright 2004 msg systems ag. All rights reserved.
> </xs:documentation>
> </xs:annotation>
> <xs:import namespace="http://msgax1i.msg.de/afis/odie"
> schemaLocation="odie.xsd"/>
> <xs:element name="layout">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="standard" type="layoutContent"/>
> <xs:element name="custom" type="layoutContent" minOccurs="0"
> maxOccurs="unbounded"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:complexType name="layoutContent">
> <xs:sequence>
> <xs:element ref="title" minOccurs="0"/>
> <xs:element ref="toolbar"/>
> <xs:element ref="page" maxOccurs="unbounded"/>
> <xs:element ref="status" minOccurs="0"/>
> </xs:sequence>
> </xs:complexType>
> <xs:element name="title">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="datasource" minOccurs="0" maxOccurs="unbounded"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <!-- ########################################################### -->
> <!-- tableGroup -->
> <xs:element name="toolbar" substitutionGroup="odie:tableGroup"/>
> <xs:element name="page" substitutionGroup="odie:tableGroup">
> <xs:complexType>
> <xs:complexContent>
> <xs:extension base="odie:tableType">
> <xs:attribute name="cols" type="xs:positiveInteger"
> default="80"/>
> <xs:attribute name="rows" type="xs:positiveInteger"
> default="20"/>
> <xs:attribute name="id" type="xs:positiveInteger"
> use="required"/>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:element>
> <xs:element name="status" substitutionGroup="odie:tableGroup"/>
> <!-- ########################################################### -->
> <!-- trGroup -->
> <!-- ########################################################### -->
> <!-- tdGroup -->
> <xs:element name="input" type="controlType_text_focusable"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="dateinput" type="controlType_text_focusable"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="decimalinput" type="controlType_text_focusable"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="policyinput" type="controlType_text_focusable"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="label" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="datelabel" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="decimallabel" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="policylabel" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="combobox" type="controlType_combobox"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="inputcombobox" type="controlType_inputcombobox"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="toolbutton" type="controlType_toolbutton"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="button" type="controlType_button"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="radiobutton" type="controlType_radiobutton"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="checkbox" type="controlType_checkbox"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="afistable" type="controlType_afistable"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="menu" type="menuType"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="scrollbar" type="controlType_scrollbar"
> substitutionGroup="odie:tdGroup"/>
> <xs:complexType name="controlType">
> <xs:complexContent>
> <xs:extension base="odie:tdType">
> <xs:sequence>
> <xs:element ref="datasource"/>
> <xs:element name="tooltip" type="datasourceType" minOccurs="0"/>
> </xs:sequence>
> <xs:attribute name="id" type="xs:string" use="required"/>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_scrollbar">
> <xs:complexContent>
> <xs:extension base="controlType"/>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_focusable">
> <xs:complexContent>
> <xs:extension base="controlType">
> <xs:attribute name="tabindex" type="xs:nonNegativeInteger"
> use="required"/>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_text">
> <xs:complexContent>
> <xs:extension base="controlType">
> <xs:attribute name="style" default="standard">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:enumeration value="standard"/>
> <xs:enumeration value="emphasis"/>
> <xs:enumeration value="nonprop"/>
> <xs:enumeration value="nonprop_emphasis"/>
> <xs:enumeration value="description"/>
> <xs:enumeration value="header"/>
> <xs:enumeration value="status"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:attribute>
> <xs:attribute name="align" default="left">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:enumeration value="left"/>
> <xs:enumeration value="center"/>
> <xs:enumeration value="right"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:attribute>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_text_focusable">
> <xs:complexContent>
> <xs:extension base="controlType_text">
> <xs:attribute name="tabindex" type="xs:nonNegativeInteger"
> use="required"/>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_combobox">
> <xs:complexContent>
> <xs:extension base="controlType_text_focusable">
> <xs:sequence>
> <xs:element name="itemlist" minOccurs="0">
> <xs:complexType>
> <xs:choice>
> <xs:element ref="datasource"/>
> <xs:sequence>
> <xs:element name="item" maxOccurs="unbounded">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="key" type="datasourceType"/>
> <xs:element name="value" type="datasourceType"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> </xs:choice>
> <xs:attribute name="rows" type="xs:positiveInteger"/>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_inputcombobox">
> <xs:complexContent>
> <xs:extension base="controlType_combobox">
> <xs:attribute name="inputcolspan" type="xs:positiveInteger"
> use="required"/>
> <xs:attribute name="comboboxcolspan" type="xs:positiveInteger"
> use="required"/>
> <xs:attribute name="deprecated_inputid" type="xs:string"
> use="required"/>
> <xs:attribute name="deprecated_inputtabindex" type="xs:string"
> use="required"/>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_checkbox">
> <xs:complexContent>
> <xs:extension base="controlType_focusable">
> <xs:sequence>
> <xs:element name="selectvalue" type="datasourceType"/>
> <xs:element name="unselectvalue" type="datasourceType"/>
> <xs:element name="undefinedvalue" type="datasourceType"
> minOccurs="0"/>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_radiobutton">
> <xs:complexContent>
> <xs:extension base="controlType_focusable">
> <xs:sequence>
> <xs:element name="selectvalue" type="datasourceType"
> minOccurs="0"/>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_toolbutton">
> <xs:complexContent>
> <xs:extension base="controlType">
> <xs:sequence>
> <xs:element name="selectvalue" type="datasourceType"/>
> <xs:element name="icon" type="datasourceType"/>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_button">
> <xs:complexContent>
> <xs:extension base="controlType_focusable">
> <xs:sequence>
> <xs:element name="buttonvalue" type="datasourceType"
> minOccurs="0"/>
> <xs:element name="action" minOccurs="0" maxOccurs="unbounded">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="param" minOccurs="0"
> maxOccurs="unbounded">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="datasource"/>
> </xs:sequence>
> <xs:attribute name="name" type="xs:string"
> use="required"/>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> <xs:attribute name="ref" type="xs:string" use="required"/>
> </xs:complexType>
> </xs:element>
> <xs:element name="buttontext" type="datasourceType"
> minOccurs="0"/>
> <xs:element name="buttonimage" type="datasourceType"
> minOccurs="0"/>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_afistable">
> <xs:complexContent>
> <xs:extension base="odie:tdType">
> <xs:sequence>
> <xs:element name="tooltip" type="datasourceType" minOccurs="0"/>
> <xs:element name="column" maxOccurs="unbounded">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="header" type="datasourceType"
> minOccurs="0"/>
> <xs:element ref="odie:tdGroup" maxOccurs="unbounded"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="scrollbar" minOccurs="0">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="datasource"/>
> <xs:element name="amount" type="datasourceType"/>
> <xs:element name="upvalue" type="datasourceType"/>
> <xs:element name="downvalue" type="datasourceType"/>
> <!--xs:element name="visible" minOccurs="0" maxOccurs="1"
> /-->
> </xs:sequence>
> <xs:attribute name="orientation" default="vertical">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:enumeration value="vertical"/>
> <xs:enumeration value="horizontal"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:attribute>
> </xs:complexType>
> </xs:element>
> <xs:element name="tablebutton" minOccurs="0"
> maxOccurs="unbounded">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="selectvalue" type="datasourceType"/>
> <xs:element name="text" type="datasourceType"/>
> <xs:element name="tooltip" type="datasourceType"
> minOccurs="0"/>
> </xs:sequence>
> <xs:attribute name="id" type="xs:string" use="required"/>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> <xs:attribute name="rows" type="xs:positiveInteger"
> use="required"/>
> <xs:attribute name="id" type="xs:string" use="required"/>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="menuType">
> <xs:complexContent>
> <xs:extension base="odie:tdType">
> <xs:sequence>
> <xs:choice>
> <xs:element name="icon" type="datasourceType"/>
> <xs:element name="text" type="datasourceType"/>
> </xs:choice>
> <xs:element name="menuitem" minOccurs="0" maxOccurs="unbounded">
> <xs:complexType>
> <xs:complexContent>
> <xs:extension base="controlType">
> <xs:sequence>
> <xs:element name="text" type="datasourceType"/>
> <xs:element name="selectvalue" type="datasourceType"/>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <!-- ########################################################### -->
> <xs:complexType name="datasourceType">
> <xs:sequence>
> <xs:element ref="datasource"/>
> </xs:sequence>
> </xs:complexType>
> <xs:element name="datasource">
> <xs:complexType>
> <xs:choice>
> <xs:element name="const">
> <xs:complexType>
> <xs:attribute name="value" type="EmptyStringType"
> use="required"/>
> </xs:complexType>
> </xs:element>
> <xs:element name="beandata">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="idref">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="datasource"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="file">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="url">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="datasource"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="tablerequest">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="datasource"/>
> <xs:element name="where" type="datasourceType" minOccurs="0"
> maxOccurs="unbounded"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:choice>
> </xs:complexType>
> </xs:element>
> <xs:simpleType name="noEmptyStringType">
> <xs:restriction base="xs:string">
> <xs:pattern value=".+"/>
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="EmptyStringType">
> <xs:restriction base="xs:string">
> <xs:pattern value=".*"/>
> </xs:restriction>
> </xs:simpleType>
> <!-- ########################################################### -->
> </xs:schema>
>
> Mike
> --
> www.soft-gems.net
Re: Bug in substituitionGroupAffiliation? [message #47803 is a reply to message #47773] Wed, 09 June 2004 12:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: invalid.soft-gems.net

Ed,

> Is it possible that you confusing the global scrollbar element with the local
> one in "controlType_afistable?

What the heck.... you are right Ed, there is this local scrollbar element
declaration. I have to find out whether I'm confusing both elements, but
this must wait until tomorrow. I'm leaving office now for a business trip.

Thank you for your helpful tip Ed.

Mike
--
www.soft-gems.net
Re: Bug in substituitionGroupAffiliation? [message #47832 is a reply to message #47773] Thu, 10 June 2004 07:53 Go to previous message
Eclipse UserFriend
Originally posted by: invalid.soft-gems.net

Ed Merks wrote:

> Is it possible that you confusing the global scrollbar element with the local
> one in "controlType_afistable?

It is as you said, the reused scrollbar named confused my library. I
renamed the global scrollbar type and everything is fine now. Sorry for
suspecting this to be a bug in the XSD lib and thank you for your help, Ed.

Mike
--
www.soft-gems.net
Re: Bug in substituitionGroupAffiliation? [message #589181 is a reply to message #47680] Wed, 09 June 2004 10:35 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31557
Registered: July 2009
Senior Member
Mike,

I can't say much with only an incomplete example to look at.


Mike Lischke wrote:

> Hello Ed,
>
> Today I found something, which looks to me like a bug. Suppose I have the
> following element declarations:
>
> <xs:element name="label" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="datelabel" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="decimallabel" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="policylabel" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="combobox" type="controlType_combobox"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="scrollbar" type="controlType_scrollbar"
> substitutionGroup="odie:tdGroup"/>
>
> For all of them the XSD package creates a proper
> substitutionGroupAffiliation set except for the scrollbar type, although
> it has the same substitionGroup set as the other controls. I don't
> understand why this happens. Do you have an idea?
>
> Mike
> --
> www.soft-gems.net


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Bug in substituitionGroupAffiliation? [message #589204 is a reply to message #47711] Wed, 09 June 2004 11:11 Go to previous message
Mike Lischke is currently offline Mike LischkeFriend
Messages: 78
Registered: July 2009
Member
Ed,

> I can't say much with only an incomplete example to look at.

I was afraid you would say something like that :-) but my hope was that
you would ask for a certain detail, which enlights the problem. Anyway,
here is the relevant schema. It is, for my taste, a bit too large for a
newsgroup posting but I post it with pleasure if you can find the mistake
I made therein. In any case I'm very happy that you take the time to look
at this. Thank you very much, Ed.

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://msgax1i.msg.de/afis/layout"
xmlns="http://msgax1i.msg.de/afis/layout"
xmlns:odie="http://msgax1i.msg.de/afis/odie"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:annotation>
<xs:documentation xml:lang="de">
Copyright 2004 msg systems ag. All rights reserved.
</xs:documentation>
</xs:annotation>
<xs:import namespace="http://msgax1i.msg.de/afis/odie"
schemaLocation="odie.xsd"/>
<xs:element name="layout">
<xs:complexType>
<xs:sequence>
<xs:element name="standard" type="layoutContent"/>
<xs:element name="custom" type="layoutContent" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="layoutContent">
<xs:sequence>
<xs:element ref="title" minOccurs="0"/>
<xs:element ref="toolbar"/>
<xs:element ref="page" maxOccurs="unbounded"/>
<xs:element ref="status" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="title">
<xs:complexType>
<xs:sequence>
<xs:element ref="datasource" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- ########################################################### -->
<!-- tableGroup -->
<xs:element name="toolbar" substitutionGroup="odie:tableGroup"/>
<xs:element name="page" substitutionGroup="odie:tableGroup">
<xs:complexType>
<xs:complexContent>
<xs:extension base="odie:tableType">
<xs:attribute name="cols" type="xs:positiveInteger"
default="80"/>
<xs:attribute name="rows" type="xs:positiveInteger"
default="20"/>
<xs:attribute name="id" type="xs:positiveInteger"
use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="status" substitutionGroup="odie:tableGroup"/>
<!-- ########################################################### -->
<!-- trGroup -->
<!-- ########################################################### -->
<!-- tdGroup -->
<xs:element name="input" type="controlType_text_focusable"
substitutionGroup="odie:tdGroup"/>
<xs:element name="dateinput" type="controlType_text_focusable"
substitutionGroup="odie:tdGroup"/>
<xs:element name="decimalinput" type="controlType_text_focusable"
substitutionGroup="odie:tdGroup"/>
<xs:element name="policyinput" type="controlType_text_focusable"
substitutionGroup="odie:tdGroup"/>
<xs:element name="label" type="controlType_text"
substitutionGroup="odie:tdGroup"/>
<xs:element name="datelabel" type="controlType_text"
substitutionGroup="odie:tdGroup"/>
<xs:element name="decimallabel" type="controlType_text"
substitutionGroup="odie:tdGroup"/>
<xs:element name="policylabel" type="controlType_text"
substitutionGroup="odie:tdGroup"/>
<xs:element name="combobox" type="controlType_combobox"
substitutionGroup="odie:tdGroup"/>
<xs:element name="inputcombobox" type="controlType_inputcombobox"
substitutionGroup="odie:tdGroup"/>
<xs:element name="toolbutton" type="controlType_toolbutton"
substitutionGroup="odie:tdGroup"/>
<xs:element name="button" type="controlType_button"
substitutionGroup="odie:tdGroup"/>
<xs:element name="radiobutton" type="controlType_radiobutton"
substitutionGroup="odie:tdGroup"/>
<xs:element name="checkbox" type="controlType_checkbox"
substitutionGroup="odie:tdGroup"/>
<xs:element name="afistable" type="controlType_afistable"
substitutionGroup="odie:tdGroup"/>
<xs:element name="menu" type="menuType"
substitutionGroup="odie:tdGroup"/>
<xs:element name="scrollbar" type="controlType_scrollbar"
substitutionGroup="odie:tdGroup"/>
<xs:complexType name="controlType">
<xs:complexContent>
<xs:extension base="odie:tdType">
<xs:sequence>
<xs:element ref="datasource"/>
<xs:element name="tooltip" type="datasourceType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_scrollbar">
<xs:complexContent>
<xs:extension base="controlType"/>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_focusable">
<xs:complexContent>
<xs:extension base="controlType">
<xs:attribute name="tabindex" type="xs:nonNegativeInteger"
use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_text">
<xs:complexContent>
<xs:extension base="controlType">
<xs:attribute name="style" default="standard">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="standard"/>
<xs:enumeration value="emphasis"/>
<xs:enumeration value="nonprop"/>
<xs:enumeration value="nonprop_emphasis"/>
<xs:enumeration value="description"/>
<xs:enumeration value="header"/>
<xs:enumeration value="status"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="align" default="left">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="left"/>
<xs:enumeration value="center"/>
<xs:enumeration value="right"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_text_focusable">
<xs:complexContent>
<xs:extension base="controlType_text">
<xs:attribute name="tabindex" type="xs:nonNegativeInteger"
use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_combobox">
<xs:complexContent>
<xs:extension base="controlType_text_focusable">
<xs:sequence>
<xs:element name="itemlist" minOccurs="0">
<xs:complexType>
<xs:choice>
<xs:element ref="datasource"/>
<xs:sequence>
<xs:element name="item" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="key" type="datasourceType"/>
<xs:element name="value" type="datasourceType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:choice>
<xs:attribute name="rows" type="xs:positiveInteger"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_inputcombobox">
<xs:complexContent>
<xs:extension base="controlType_combobox">
<xs:attribute name="inputcolspan" type="xs:positiveInteger"
use="required"/>
<xs:attribute name="comboboxcolspan" type="xs:positiveInteger"
use="required"/>
<xs:attribute name="deprecated_inputid" type="xs:string"
use="required"/>
<xs:attribute name="deprecated_inputtabindex" type="xs:string"
use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_checkbox">
<xs:complexContent>
<xs:extension base="controlType_focusable">
<xs:sequence>
<xs:element name="selectvalue" type="datasourceType"/>
<xs:element name="unselectvalue" type="datasourceType"/>
<xs:element name="undefinedvalue" type="datasourceType"
minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_radiobutton">
<xs:complexContent>
<xs:extension base="controlType_focusable">
<xs:sequence>
<xs:element name="selectvalue" type="datasourceType"
minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_toolbutton">
<xs:complexContent>
<xs:extension base="controlType">
<xs:sequence>
<xs:element name="selectvalue" type="datasourceType"/>
<xs:element name="icon" type="datasourceType"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_button">
<xs:complexContent>
<xs:extension base="controlType_focusable">
<xs:sequence>
<xs:element name="buttonvalue" type="datasourceType"
minOccurs="0"/>
<xs:element name="action" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="param" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element ref="datasource"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string"
use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="ref" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="buttontext" type="datasourceType"
minOccurs="0"/>
<xs:element name="buttonimage" type="datasourceType"
minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="controlType_afistable">
<xs:complexContent>
<xs:extension base="odie:tdType">
<xs:sequence>
<xs:element name="tooltip" type="datasourceType" minOccurs="0"/>
<xs:element name="column" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="header" type="datasourceType"
minOccurs="0"/>
<xs:element ref="odie:tdGroup" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="scrollbar" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element ref="datasource"/>
<xs:element name="amount" type="datasourceType"/>
<xs:element name="upvalue" type="datasourceType"/>
<xs:element name="downvalue" type="datasourceType"/>
<!--xs:element name="visible" minOccurs="0" maxOccurs="1"
/-->
</xs:sequence>
<xs:attribute name="orientation" default="vertical">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="vertical"/>
<xs:enumeration value="horizontal"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="tablebutton" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="selectvalue" type="datasourceType"/>
<xs:element name="text" type="datasourceType"/>
<xs:element name="tooltip" type="datasourceType"
minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="rows" type="xs:positiveInteger"
use="required"/>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="menuType">
<xs:complexContent>
<xs:extension base="odie:tdType">
<xs:sequence>
<xs:choice>
<xs:element name="icon" type="datasourceType"/>
<xs:element name="text" type="datasourceType"/>
</xs:choice>
<xs:element name="menuitem" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:complexContent>
<xs:extension base="controlType">
<xs:sequence>
<xs:element name="text" type="datasourceType"/>
<xs:element name="selectvalue" type="datasourceType"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<!-- ########################################################### -->
<xs:complexType name="datasourceType">
<xs:sequence>
<xs:element ref="datasource"/>
</xs:sequence>
</xs:complexType>
<xs:element name="datasource">
<xs:complexType>
<xs:choice>
<xs:element name="const">
<xs:complexType>
<xs:attribute name="value" type="EmptyStringType"
use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="beandata">
<xs:complexType>
<xs:sequence>
<xs:element name="idref">
<xs:complexType>
<xs:sequence>
<xs:element ref="datasource"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="file">
<xs:complexType>
<xs:sequence>
<xs:element name="url">
<xs:complexType>
<xs:sequence>
<xs:element ref="datasource"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="tablerequest">
<xs:complexType>
<xs:sequence>
<xs:element ref="datasource"/>
<xs:element name="where" type="datasourceType" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:simpleType name="noEmptyStringType">
<xs:restriction base="xs:string">
<xs:pattern value=".+"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="EmptyStringType">
<xs:restriction base="xs:string">
<xs:pattern value=".*"/>
</xs:restriction>
</xs:simpleType>
<!-- ########################################################### -->
</xs:schema>

Mike
--
www.soft-gems.net
Re: Bug in substituitionGroupAffiliation? [message #589225 is a reply to message #47742] Wed, 09 June 2004 11:50 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31557
Registered: July 2009
Senior Member
Mike,

I need odie.xsd too.

Is it possible that you confusing the global scrollbar element with the local
one in "controlType_afistable?


Mike Lischke wrote:

> Ed,
>
> > I can't say much with only an incomplete example to look at.
>
> I was afraid you would say something like that :-) but my hope was that
> you would ask for a certain detail, which enlights the problem. Anyway,
> here is the relevant schema. It is, for my taste, a bit too large for a
> newsgroup posting but I post it with pleasure if you can find the mistake
> I made therein. In any case I'm very happy that you take the time to look
> at this. Thank you very much, Ed.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema targetNamespace="http://msgax1i.msg.de/afis/layout"
> xmlns="http://msgax1i.msg.de/afis/layout"
> xmlns:odie="http://msgax1i.msg.de/afis/odie"
> xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
> attributeFormDefault="unqualified">
> <xs:annotation>
> <xs:documentation xml:lang="de">
> Copyright 2004 msg systems ag. All rights reserved.
> </xs:documentation>
> </xs:annotation>
> <xs:import namespace="http://msgax1i.msg.de/afis/odie"
> schemaLocation="odie.xsd"/>
> <xs:element name="layout">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="standard" type="layoutContent"/>
> <xs:element name="custom" type="layoutContent" minOccurs="0"
> maxOccurs="unbounded"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:complexType name="layoutContent">
> <xs:sequence>
> <xs:element ref="title" minOccurs="0"/>
> <xs:element ref="toolbar"/>
> <xs:element ref="page" maxOccurs="unbounded"/>
> <xs:element ref="status" minOccurs="0"/>
> </xs:sequence>
> </xs:complexType>
> <xs:element name="title">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="datasource" minOccurs="0" maxOccurs="unbounded"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <!-- ########################################################### -->
> <!-- tableGroup -->
> <xs:element name="toolbar" substitutionGroup="odie:tableGroup"/>
> <xs:element name="page" substitutionGroup="odie:tableGroup">
> <xs:complexType>
> <xs:complexContent>
> <xs:extension base="odie:tableType">
> <xs:attribute name="cols" type="xs:positiveInteger"
> default="80"/>
> <xs:attribute name="rows" type="xs:positiveInteger"
> default="20"/>
> <xs:attribute name="id" type="xs:positiveInteger"
> use="required"/>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:element>
> <xs:element name="status" substitutionGroup="odie:tableGroup"/>
> <!-- ########################################################### -->
> <!-- trGroup -->
> <!-- ########################################################### -->
> <!-- tdGroup -->
> <xs:element name="input" type="controlType_text_focusable"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="dateinput" type="controlType_text_focusable"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="decimalinput" type="controlType_text_focusable"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="policyinput" type="controlType_text_focusable"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="label" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="datelabel" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="decimallabel" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="policylabel" type="controlType_text"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="combobox" type="controlType_combobox"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="inputcombobox" type="controlType_inputcombobox"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="toolbutton" type="controlType_toolbutton"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="button" type="controlType_button"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="radiobutton" type="controlType_radiobutton"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="checkbox" type="controlType_checkbox"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="afistable" type="controlType_afistable"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="menu" type="menuType"
> substitutionGroup="odie:tdGroup"/>
> <xs:element name="scrollbar" type="controlType_scrollbar"
> substitutionGroup="odie:tdGroup"/>
> <xs:complexType name="controlType">
> <xs:complexContent>
> <xs:extension base="odie:tdType">
> <xs:sequence>
> <xs:element ref="datasource"/>
> <xs:element name="tooltip" type="datasourceType" minOccurs="0"/>
> </xs:sequence>
> <xs:attribute name="id" type="xs:string" use="required"/>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_scrollbar">
> <xs:complexContent>
> <xs:extension base="controlType"/>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_focusable">
> <xs:complexContent>
> <xs:extension base="controlType">
> <xs:attribute name="tabindex" type="xs:nonNegativeInteger"
> use="required"/>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_text">
> <xs:complexContent>
> <xs:extension base="controlType">
> <xs:attribute name="style" default="standard">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:enumeration value="standard"/>
> <xs:enumeration value="emphasis"/>
> <xs:enumeration value="nonprop"/>
> <xs:enumeration value="nonprop_emphasis"/>
> <xs:enumeration value="description"/>
> <xs:enumeration value="header"/>
> <xs:enumeration value="status"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:attribute>
> <xs:attribute name="align" default="left">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:enumeration value="left"/>
> <xs:enumeration value="center"/>
> <xs:enumeration value="right"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:attribute>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_text_focusable">
> <xs:complexContent>
> <xs:extension base="controlType_text">
> <xs:attribute name="tabindex" type="xs:nonNegativeInteger"
> use="required"/>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_combobox">
> <xs:complexContent>
> <xs:extension base="controlType_text_focusable">
> <xs:sequence>
> <xs:element name="itemlist" minOccurs="0">
> <xs:complexType>
> <xs:choice>
> <xs:element ref="datasource"/>
> <xs:sequence>
> <xs:element name="item" maxOccurs="unbounded">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="key" type="datasourceType"/>
> <xs:element name="value" type="datasourceType"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> </xs:choice>
> <xs:attribute name="rows" type="xs:positiveInteger"/>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_inputcombobox">
> <xs:complexContent>
> <xs:extension base="controlType_combobox">
> <xs:attribute name="inputcolspan" type="xs:positiveInteger"
> use="required"/>
> <xs:attribute name="comboboxcolspan" type="xs:positiveInteger"
> use="required"/>
> <xs:attribute name="deprecated_inputid" type="xs:string"
> use="required"/>
> <xs:attribute name="deprecated_inputtabindex" type="xs:string"
> use="required"/>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_checkbox">
> <xs:complexContent>
> <xs:extension base="controlType_focusable">
> <xs:sequence>
> <xs:element name="selectvalue" type="datasourceType"/>
> <xs:element name="unselectvalue" type="datasourceType"/>
> <xs:element name="undefinedvalue" type="datasourceType"
> minOccurs="0"/>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_radiobutton">
> <xs:complexContent>
> <xs:extension base="controlType_focusable">
> <xs:sequence>
> <xs:element name="selectvalue" type="datasourceType"
> minOccurs="0"/>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_toolbutton">
> <xs:complexContent>
> <xs:extension base="controlType">
> <xs:sequence>
> <xs:element name="selectvalue" type="datasourceType"/>
> <xs:element name="icon" type="datasourceType"/>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_button">
> <xs:complexContent>
> <xs:extension base="controlType_focusable">
> <xs:sequence>
> <xs:element name="buttonvalue" type="datasourceType"
> minOccurs="0"/>
> <xs:element name="action" minOccurs="0" maxOccurs="unbounded">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="param" minOccurs="0"
> maxOccurs="unbounded">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="datasource"/>
> </xs:sequence>
> <xs:attribute name="name" type="xs:string"
> use="required"/>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> <xs:attribute name="ref" type="xs:string" use="required"/>
> </xs:complexType>
> </xs:element>
> <xs:element name="buttontext" type="datasourceType"
> minOccurs="0"/>
> <xs:element name="buttonimage" type="datasourceType"
> minOccurs="0"/>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="controlType_afistable">
> <xs:complexContent>
> <xs:extension base="odie:tdType">
> <xs:sequence>
> <xs:element name="tooltip" type="datasourceType" minOccurs="0"/>
> <xs:element name="column" maxOccurs="unbounded">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="header" type="datasourceType"
> minOccurs="0"/>
> <xs:element ref="odie:tdGroup" maxOccurs="unbounded"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="scrollbar" minOccurs="0">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="datasource"/>
> <xs:element name="amount" type="datasourceType"/>
> <xs:element name="upvalue" type="datasourceType"/>
> <xs:element name="downvalue" type="datasourceType"/>
> <!--xs:element name="visible" minOccurs="0" maxOccurs="1"
> /-->
> </xs:sequence>
> <xs:attribute name="orientation" default="vertical">
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:enumeration value="vertical"/>
> <xs:enumeration value="horizontal"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:attribute>
> </xs:complexType>
> </xs:element>
> <xs:element name="tablebutton" minOccurs="0"
> maxOccurs="unbounded">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="selectvalue" type="datasourceType"/>
> <xs:element name="text" type="datasourceType"/>
> <xs:element name="tooltip" type="datasourceType"
> minOccurs="0"/>
> </xs:sequence>
> <xs:attribute name="id" type="xs:string" use="required"/>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> <xs:attribute name="rows" type="xs:positiveInteger"
> use="required"/>
> <xs:attribute name="id" type="xs:string" use="required"/>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <xs:complexType name="menuType">
> <xs:complexContent>
> <xs:extension base="odie:tdType">
> <xs:sequence>
> <xs:choice>
> <xs:element name="icon" type="datasourceType"/>
> <xs:element name="text" type="datasourceType"/>
> </xs:choice>
> <xs:element name="menuitem" minOccurs="0" maxOccurs="unbounded">
> <xs:complexType>
> <xs:complexContent>
> <xs:extension base="controlType">
> <xs:sequence>
> <xs:element name="text" type="datasourceType"/>
> <xs:element name="selectvalue" type="datasourceType"/>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> <!-- ########################################################### -->
> <xs:complexType name="datasourceType">
> <xs:sequence>
> <xs:element ref="datasource"/>
> </xs:sequence>
> </xs:complexType>
> <xs:element name="datasource">
> <xs:complexType>
> <xs:choice>
> <xs:element name="const">
> <xs:complexType>
> <xs:attribute name="value" type="EmptyStringType"
> use="required"/>
> </xs:complexType>
> </xs:element>
> <xs:element name="beandata">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="idref">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="datasource"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="file">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="url">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="datasource"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="tablerequest">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="datasource"/>
> <xs:element name="where" type="datasourceType" minOccurs="0"
> maxOccurs="unbounded"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:choice>
> </xs:complexType>
> </xs:element>
> <xs:simpleType name="noEmptyStringType">
> <xs:restriction base="xs:string">
> <xs:pattern value=".+"/>
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="EmptyStringType">
> <xs:restriction base="xs:string">
> <xs:pattern value=".*"/>
> </xs:restriction>
> </xs:simpleType>
> <!-- ########################################################### -->
> </xs:schema>
>
> Mike
> --
> www.soft-gems.net


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Bug in substituitionGroupAffiliation? [message #589246 is a reply to message #47773] Wed, 09 June 2004 12:07 Go to previous message
Mike Lischke is currently offline Mike LischkeFriend
Messages: 78
Registered: July 2009
Member
Ed,

> Is it possible that you confusing the global scrollbar element with the local
> one in "controlType_afistable?

What the heck.... you are right Ed, there is this local scrollbar element
declaration. I have to find out whether I'm confusing both elements, but
this must wait until tomorrow. I'm leaving office now for a business trip.

Thank you for your helpful tip Ed.

Mike
--
www.soft-gems.net
Re: Bug in substituitionGroupAffiliation? [message #589259 is a reply to message #47773] Thu, 10 June 2004 07:53 Go to previous message
Mike Lischke is currently offline Mike LischkeFriend
Messages: 78
Registered: July 2009
Member
Ed Merks wrote:

> Is it possible that you confusing the global scrollbar element with the local
> one in "controlType_afistable?

It is as you said, the reused scrollbar named confused my library. I
renamed the global scrollbar type and everything is fine now. Sorry for
suspecting this to be a bug in the XSD lib and thank you for your help, Ed.

Mike
--
www.soft-gems.net
Previous Topic:Bug in substituitionGroupAffiliation?
Next Topic:parsing XSD from WSDL; then saving as stand-alone
Goto Forum:
  


Current Time: Thu Oct 29 03:06:17 GMT 2020

Powered by FUDForum. Page generated in 0.02936 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top