|Re: Serializing an unordered group? [message #1689566 is a reply to message #1689538]
||Mon, 23 March 2015 21:34
| Ed Willink
Registered: July 2009
I have tried using unordered groups a couple of times to improve a
grammar written before they existed. However I have reverted each time.
I suggest that you abandon them and just use a bunch--of-adjectives
collection so that any order is permitted.
Unfortunately you are then obliged to use validation rules to impose
restrictions on multiplicity.
On 23/03/2015 20:22, Stephan Herrmann wrote:
> Twenty or so grammars later I still don't know which factor exactly
> makes the difference. It's not the double keywords, it's not the fact
> that some group elements are separate rules while others are inline.
> Maybe when pulling the two special elements out of the unordered group
> I just got lucky in my experiments, but that's the only way I could
> get the serializer to work, i.e., produce valid models.
> This implies, that I will have to force an order in my grammar, where
> previous versions let users choose the order.
> BTW: In successful attempts the sub-list that I was adding to was
> always pulled to the end of the unordered group (also end of the
> document), so maybe it's just not possible to add to two sub-lists
> within the same unordered group at the same time ...
> Any hints on how to adapt the serializer in these regards appreciated,
Powered by FUDForum
. Page generated in 0.02330 seconds