TEIC / romajs

A web app for creating and editing ODD documents
https://roma.tei-c.org/
GNU General Public License v3.0
25 stars 8 forks source link

UI question: @minOccurs and @maxOccurs on <datatype> #109

Open rvdb opened 4 years ago

rvdb commented 4 years ago

This is tested with Roma 0.2.9.

When editing/creating an attribute in Roma, the Roma UI doesn't provide an option to specify @minOccurs and @maxOccurs in the "Datatype" section of the form.

Is this a deliberate choice?

lb42 commented 4 years ago

Datatype is not repeatable inside attref. So yes, i guess it's deliberate!

Reluctantly using Outlook for Androidhttps://aka.ms/ghei36


From: rvdb notifications@github.com Sent: Thursday, June 11, 2020 8:51:57 PM To: TEIC/romajs romajs@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [TEIC/romajs] UI question: @minOccurs and @maxOccurs on (#109)

This is tested with Roma 0.2.9.

When editing/creating an attribute in Roma, the Roma UI doesn't provide an option to specify @minOccurs and @maxOccurs in the "Datatype" section of the form.

Is this a deliberate choice?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/TEIC/romajs/issues/109, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAFBJ5DON5V2FD5DNZ23BWLRWEYV3ANCNFSM4N3WWJ4Q.

rvdb commented 4 years ago

Hi @lb42 , perhaps I should clarify: I wasn't aiming at creating multiple <datatype> elements inside <attDef>. Instead, I was looking for a means to specify the @minOccurs and @maxOccurs attributes for that <datatype> element.

In other words: I don't find a means in the current Roma version (0.2.9) to specify e.g. the @maxOccurs in:

<datatype maxOccurs="unbounded">
  <dataRef key="teidata.enumerated"/>
</datatype>
lb42 commented 4 years ago

Ah, yes, sorry. I misunderstood you. Looks likes a bug! (there is even an example in P5 almost identical to what you give above)