Conversation
…on_version.xsd Co-authored-by: Stefan de Konink <stefan@konink.de>
|
generalized to all such lists. |
|
Nick: FacilitySet you want to mix up. Bad for "decorators" |
|
@skinkie the discussion and what I see in code don't make sense. Also to discuss in the chat on Wednesday. |
|
either Ref or direct, but never mixed. |
| </xsd:annotation> | ||
| </xsd:element> | ||
| <xsd:choice> | ||
| <xsd:element ref="RouteInstructionRef" maxOccurs="unbounded"> |
There was a problem hiding this comment.
Would it be possible to do this in the following way:
<choice>
<sequence>
<xsd:element ref="RouteInstructionRef" maxOccurs="unbounded">
</sequence>
<sequence>
<xsd:element ref="RouteInstruction" maxOccurs="unbounded">
</sequence>
</choice>
There was a problem hiding this comment.
it is... but would be a bit strange. Do you need it for the conversion? commit done
There was a problem hiding this comment.
I would love to have a conversation on this being our 'default' way to do containers with aggregations, so that its either a List[Type1] or List[Type2]. Sure in ServiceJourneyPattern it serves a function, I cannot wrap my hand around why you want to instantiate a type here (being the RouteInstruction) and then next in the list you make it a RouteInstructionRef.
There was a problem hiding this comment.
@skinkie if we need a general discussion: can you create an issue for release 2.1?
|
@skinkie the concrete example is done right now? Isn't it? so you can accept it? |
|
@skinkie ok now or obsolete? |
|
Why obsolete? |
|
| @@ -73,11 +73,22 @@ Rail transport, Roads and Road transport | |||
| <xsd:complexContent> | |||
| <xsd:extension base="strictContainmentAggregationStructure"> | |||
| <xsd:sequence> | |||
Aurige
left a comment
There was a problem hiding this comment.
That's Ok for me (latest XSD is just more compact, does not change anything for the XML)
* fix 466 with including also the stuff that Christophe wrote. * Lint and update documentation tables * Update xsd/netex_part_1/part1_networkDescription/netex_routeInstruction_version.xsd Co-authored-by: Stefan de Konink <stefan@konink.de> * example, fixed choice, added constraints * Lint and update documentation tables * fix carrdinalties and a typo * sequences in choice * Lint and update documentation tables * Apply suggestions from code review * typos and simplification * Lint and update documentation tables --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Stefan de Konink <stefan@konink.de>
* fix 466 with including also the stuff that Christophe wrote. * Lint and update documentation tables * Update xsd/netex_part_1/part1_networkDescription/netex_routeInstruction_version.xsd Co-authored-by: Stefan de Konink <stefan@konink.de> * example, fixed choice, added constraints * Lint and update documentation tables * fix carrdinalties and a typo * sequences in choice * Lint and update documentation tables * Apply suggestions from code review * typos and simplification * Lint and update documentation tables --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Stefan de Konink <stefan@konink.de>
with including also the stuff that Christophe wrote.
fixes #466