widgets in widget-screen.xsd; minOccurs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

widgets in widget-screen.xsd; minOccurs

cjhowe
This is trivial, but I was curious why the widgets element isn't set to
minOccurs="0"

having <widgets/> is valid and is rendered as expected.  So, can we
change the xsd so that omitting it altogether from a screen definition
should be allowed as well?

    <xs:element name="section" substitutionGroup="AllWidgets">
        <xs:complexType>
            <xs:sequence>
                <xs:element minOccurs="0" ref="condition"/>
                <xs:element minOccurs="0" ref="actions"/>
                <xs:element ref="widgets"/>
                <xs:element minOccurs="0" ref="fail-widgets"/>
            </xs:sequence>
            <xs:attributeGroup ref="attlist.section"/>
        </xs:complexType>
    </xs:element>
Reply | Threaded
Open this post in threaded view
|

Re: widgets in widget-screen.xsd; minOccurs

Adrian Crum
+1

I agree that it would be nice to be able to invoke actions without having to
create a widget section.


Chris Howe wrote:

> This is trivial, but I was curious why the widgets element isn't set to
> minOccurs="0"
>
> having <widgets/> is valid and is rendered as expected.  So, can we
> change the xsd so that omitting it altogether from a screen definition
> should be allowed as well?
>
>     <xs:element name="section" substitutionGroup="AllWidgets">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element minOccurs="0" ref="condition"/>
>                 <xs:element minOccurs="0" ref="actions"/>
>                 <xs:element ref="widgets"/>
>                 <xs:element minOccurs="0" ref="fail-widgets"/>
>             </xs:sequence>
>             <xs:attributeGroup ref="attlist.section"/>
>         </xs:complexType>
>     </xs:element>
>
Reply | Threaded
Open this post in threaded view
|

Re: widgets in widget-screen.xsd; minOccurs

Jacques Le Roux
Administrator
Yes sounds cool, +1

Jacques

----- Message d'origine -----
De : "Adrian Crum" <[hidden email]>
À : <[hidden email]>
Envoyé : lundi 2 avril 2007 22:44
Objet : Re: widgets in widget-screen.xsd; minOccurs


> +1
>
> I agree that it would be nice to be able to invoke actions without
having to
> create a widget section.
>
>
> Chris Howe wrote:
> > This is trivial, but I was curious why the widgets element isn't set
to
> > minOccurs="0"
> >
> > having <widgets/> is valid and is rendered as expected.  So, can we
> > change the xsd so that omitting it altogether from a screen
definition

> > should be allowed as well?
> >
> >     <xs:element name="section" substitutionGroup="AllWidgets">
> >         <xs:complexType>
> >             <xs:sequence>
> >                 <xs:element minOccurs="0" ref="condition"/>
> >                 <xs:element minOccurs="0" ref="actions"/>
> >                 <xs:element ref="widgets"/>
> >                 <xs:element minOccurs="0" ref="fail-widgets"/>
> >             </xs:sequence>
> >             <xs:attributeGroup ref="attlist.section"/>
> >         </xs:complexType>
> >     </xs:element>
> >