john.m.dlugosz at kodak.com wrote:
> I'm trying to create a Schema.
> 
> When I insert a node for simpleType, it comes with a subnode for xs:list.
> I can't get rid of that, change it to something else, or insert anything
> else!  What I want, for example, is a simpleType that contains a union, or
> a simpleType that contains a restriction.  I can copy a simpleType node
> from your sample bugreport.xsd file, but I can't figure out how to create
> one like that.

I assume that you use the ``styled'' view of the W3C XML Schema.

[1] Insert a xs:simpleType.

[2] Use the *Replace* icon found at the top of the xs:list child of the
newly inserted xs:simpleType element. It looks like this:

|   ^
\__/

[3] This icon will popup a menu containing: xs:list, xs:restriction,
xs:union. Choose a replacement for the xs:list child.

Alternatively, select the xs:list child of the xs:simpleType element by
clicking on it, then use command Replace found in the Edit menu and in
the Edit tool.

---
PS: In case you prefer having newly created xs:simpleTypes contain
xs:restrictions instead of xs:lists, you need to modify the XXE
configuration of W3C XML Schemas and specify the proper cfg:elementTemplate.

See http://www.xmlmind.com/xmleditor/_distrib/doc/configure/ch06s09.html

We should have done that a long time ago but we haven't, by pure laziness.

Reply via email to