Felix Maeder
2002-10-23 16:22:18 UTC
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
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
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev