Discussion:
Bitflux Schema
Felix Maeder
2002-10-23 16:22:18 UTC
Permalink
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
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Christian Stocker
2002-10-23 17:27:23 UTC
Permalink
Post by Felix Maeder
Hi all,
2. Is there a way to add elements on the top-level of a document (e.g.
Headline, Abstract in demo.bitfluxeditor.org).
You mean adding an element to Headline, or adding an element on the same
level as for example Headline?
Post by Felix Maeder
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?
3. Is this correct that the "minOccurs" and "maxOccurs" attributes don't
<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?
Nope, you're not missing anything. I have to admit, that the schema
support in BXE is a little bit weak. But this will be the first thing, i
want to change after I changed some backend stuff. At least MinOccurs and
MaxOccurs I want to support as soon as possible

chregu
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Felix Maeder
2002-10-24 07:41:11 UTC
Permalink
Post by Christian Stocker
Post by Felix Maeder
Hi all,
2. Is there a way to add elements on the top-level of a document (e.g.
Headline, Abstract in demo.bitfluxeditor.org).
You mean adding an element to Headline, or adding an element on the same
level as for example Headline?
I mean the second one: adding an element on the same level as Headline
(e.g. adding "Abstract" again after it has been deleted).

Felix
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Christian Stocker
2002-10-24 11:39:30 UTC
Permalink
Post by Felix Maeder
Post by Christian Stocker
Post by Felix Maeder
Hi all,
2. Is there a way to add elements on the top-level of a document (e.g.
Headline, Abstract in demo.bitfluxeditor.org).
You mean adding an element to Headline, or adding an element on the same
level as for example Headline?
I mean the second one: adding an element on the same level as Headline
(e.g. adding "Abstract" again after it has been deleted).
You shouldn't be able to delete the node Abstract (IIRC) in the
Unipublic example, but only the content. But i see right now, that it's
nevertheless possible (make a selection from Byline to Headline1 and hit
"delete"..). I'll fix that.

chregu
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Loading...