Hi Patrick,

It seems an issue with the generation of required content based on Relax 
NG schemas.
Until we fix that you can disable the generation of element content from
Options->Preferences -- Editor / Content Completion,
disable the "Add element content" option.

Best Regards,
George
-- 
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Patrick Gundlach wrote:
> Hello,
> 
> with the following grammar the contents of the element "foo" can  
> either be the attribute "att" _or_ the element "elt".
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <grammar
>    xmlns="http://relaxng.org/ns/structure/1.0";
>    xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0";
>    datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes";>
>    <start>
>      <element name="root">
>        <oneOrMore>
>          <element name="foo">
>            <choice>
>              <attribute name="att" />
>              <element name="elt"><text /></element>
>              </choice>
>          </element>
>        </oneOrMore>
>      </element>
>    </start>
> </grammar>
> 
> 
> But when I insert <foo> into the editor, oxygen gives me the element  
> <elt> as a child. So I have to delete the element manually if I use  
> the attribute 'att'. I find this behavior a bit of a nuisance. Is this  
> on purpose?
> 
> Patrick
> 
> _______________________________________________
> oXygen-user mailing list
> [email protected]
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to