Home » railML newsgroups » railML.infrastructure » [railML3]: keyLocksIL and ownsLogicalDevice
[railML3]: keyLocksIL and ownsLogicalDevice [message #2559] Tue, 20 October 2020 13:28 Go to next message
Dominik Looser is currently offline  Dominik Looser
Messages: 18
Registered: March 2020
Junior Member
Dear all,

in RailML3.1, the interlocking complexType keyLocksIL not only has a child keyLockIL, but also another child ownsLogicalDevice:
<xs:element name="ownsLogicalDevice" type="rail3:LogicalDevice" minOccurs="1" maxOccurs="unbounded"/>

We have tried several possibilites on what to fill into this ownsLogicalDevice child, e.g.:

<keyLocksIL>
    <keyLockIL id="kloIL8">
        <refersTo ref="klo8"/>
    </keyLockIL>
    <ownsLogicalDevice id="old_temp_id"/>
</keyLocksIL>

Since all other attributes and subelements of ownsLogicalDevice are optional, this should be sufficient from our understanding, but the xml-validation always fails with:

269:46 cvc-type.2: The type definition cannot be abstract for element ownsLogicalDevice.

We would be thankful if someone could post a valid example for keyLocksIL.

Thank you and best regards,
Dominik Looser
trafit solutions gmbh
Re: [railML3]: keyLocksIL and ownsLogicalDevice [message #2560 is a reply to message #2559] Tue, 20 October 2020 13:45 Go to previous messageGo to next message
Dominik Looser is currently offline  Dominik Looser
Messages: 18
Registered: March 2020
Junior Member
I have just realized that I have created this topic in the wrong forum. Can someone move this to the Interlocking-newsgroup? Thank you and my apologies.
Re: [railML3]: keyLocksIL and ownsLogicalDevice [message #2568 is a reply to message #2559] Sun, 01 November 2020 07:18 Go to previous messageGo to next message
Joerg von Lingen is currently offline  Joerg von Lingen
Messages: 148
Registered: May 2011
Senior Member
Dear all,

the element <keylockIL> was until this summer not in the focus of any user. Thus
we didn't discover the failure in the schema file before. This was corrected in
file https://www.railml.org/schemas/3.1/interlocking3.xsd.

During the refactoring to change the way of polymorphism probably one line did
remain. It was line 2017:
<xs:element name="ownsLogicalDevice" type="rail3:LogicalDevice" minOccurs="1"
maxOccurs="unbounded"/>

With this line in the schema an element of an abstract data type is required,
which is not really possible.

In case you are not validating against the online schema you shall check to have
the correct schema (railML-3.1.zip) downloaded from railML.org.


Best regards,
Joerg v. Lingen - Rollingstock Coordinator

Am 20.10.2020 um 13:28 schrieb Dominik Looser:
> Dear all,
>
> in RailML3.1, the interlocking complexType keyLocksIL not
> only has a child keyLockIL, but also another child
> ownsLogicalDevice:
> <xs:element name="ownsLogicalDevice"
> type="rail3:LogicalDevice" minOccurs="1"
> maxOccurs="unbounded"/>
>
> We have tried several possibilites on what to fill into this
> ownsLogicalDevice child, e.g.:
>
>
> <keyLocksIL>
>    <keyLockIL id="kloIL8">
>        <refersTo ref="klo8"/>
>    </keyLockIL>
>    <ownsLogicalDevice id="old_temp_id"/>
> </keyLocksIL>
>
>
> Since all other attributes and subelements of
> ownsLogicalDevice are optional, this should be sufficient
> from our understanding, but the xml-validation always fails
> with:
>
> 269:46 cvc-type.2: The type definition cannot be abstract
> for element ownsLogicalDevice.
>
> We would be thankful if someone could post a valid example
> for keyLocksIL.
>
> Thank you and best regards,
> Dominik Looser
> trafit solutions gmbh
Re: [railML3]: keyLocksIL and ownsLogicalDevice [message #2572 is a reply to message #2568] Mon, 02 November 2020 08:41 Go to previous message
Dominik Looser is currently offline  Dominik Looser
Messages: 18
Registered: March 2020
Junior Member
Dear all,

with the updated xsd-file, the validation now works perfectly.

Thank you for the support and best regards,
Dominik Looser
trafit solutions gmbh
Previous Topic: [railML3] switch and crossing inclination
Next Topic: [railML3] draft of RBC according ETCS use case
Goto Forum:
  


Current Time: Fri Apr 19 01:01:21 CEST 2024