Bitflux Schema

Felix Maeder <[email protected]> Wed, 23 Oct 2002 18:22:18 +0200
Newsgroups gmane.editors.bitflux.devel
Message-ID <[email protected]>
Hi all,

I have some questions concerning the Bitflux schema:

1. If I delete all the text of an element, the element itself gets 
removed. Is there a way to flag an element as "required" so that it 
never gets deleted?

2. Is there a way to add elements on the top-level of  a document (e.g. 
Headline, Abstract in demo.bitfluxeditor.org).

3. Is this correct that the "minOccurs" and "maxOccurs" attributes don't 
have an effect? Example:
<xs:element name='media'>
<snip/>
   <xs:complexType>
     <xs:choice minOccurs='1' maxOccurs='1'>
       <xs:element ref='media-reference' minOccurs='1' maxOccurs='1'/>
       <xs:element ref='media-caption' minOccurs='0' maxOccurs='1'/>
       <xs:element ref='authorline' minOccurs='0' maxOccurs='1'/>
     </xs:choice>
   </xs:complexType>
</xs:element>
In this case, I can still add more than one element "media-caption" or 
"authorline" and I am also able to delete the element "media-reference". 
Am I missing something?


Thanks a lot
Felix

-- 
bx-editor-dev mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev