Re: Bitflux Schema
Christian Stocker <[email protected]> Wed, 23 Oct 2002 19:27:23 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 23 Oct 2002, Felix Maeder wrote: > Hi all, > > I have some questions concerning the Bitflux schema: > > 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? > 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 > 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? 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 [email protected] http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev