Eric van der Vlist wrote: > > I have defined an element as: > > <xs:element name="adresse"> > <xs:complexType mixed="true"> > <xs:choice minOccurs="0" maxOccurs="unbounded"> > <xs:element ref="livredoc:rue"/> > <xs:element ref="livredoc:codePostal"/> > <xs:element ref="livredoc:ville"/> > <xs:element ref="livredoc:r?gionOuEtat"/> > <xs:element ref="livredoc:pays"/> > <xs:element ref="livredoc:autreAdresse"/> > </xs:choice> > <xs:attributeGroup ref="livredoc:attributsCommuns"/> > </xs:complexType> > </xs:element> > > When I create a new adresse, XXE lets me type text directly under the > "adresse" element,
Yes, because of mixed="true". > it also lets me insert sub elements but when I select a piece of text under > the "adresse" element, the "convert" options are > not available like they use to be in similar vocabularies (DocBook for > instance) defined through DTDs. I was not able to reproduce this behavior. I tested your <adresse> element with attached files: * test.livredoc conforming to livredoc.xsd, * test2.livredoc conforming to livredoc2.xsd (which declares livredoc:rue, livredoc:codePostal, etc, differently than livredoc.xsd), and everything works fine: I can type text, insert subelements and convert text contained in <adresse> to a subelement (and the opposite) as expected. > Have I missed something or is that a WXS related bug? May be you need to send me the complete W3C XML-Schema and a conforming instance... -------------- next part -------------- A non-text attachment was scrubbed... Name: livredoc.xsd Type: text/xml Size: 1801 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040413/9835cc60/attachment.xml -------------- next part -------------- A non-text attachment was scrubbed... Name: test.livredoc Type: text/xml Size: 355 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040413/9835cc60/attachment-0001.xml -------------- next part -------------- A non-text attachment was scrubbed... Name: livredoc2.xsd Type: text/xml Size: 2590 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040413/9835cc60/attachment-0002.xml -------------- next part -------------- A non-text attachment was scrubbed... Name: test2.livredoc Type: text/xml Size: 356 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040413/9835cc60/attachment-0003.xml

