-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
validated references to translated objects (claeis/ilivalidator#361)
- Loading branch information
Showing
12 changed files
with
417 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
INTERLIS 2.3; | ||
|
||
MODEL Translation23_de (de) | ||
AT "mailto:noreply@localhost" VERSION "2021-09-07" = | ||
|
||
TOPIC TestA_de = | ||
OID AS INTERLIS.UUIDOID; | ||
|
||
CLASS ClassA1_de = | ||
attrA_de : TEXT*60; | ||
END ClassA1_de; | ||
|
||
END TestA_de; | ||
|
||
TOPIC TestB_de = | ||
OID AS INTERLIS.UUIDOID; | ||
DEPENDS ON TestA_de; | ||
|
||
STRUCTURE StructB0_de = | ||
refA_de : MANDATORY REFERENCE TO (EXTERNAL) Translation23_de.TestA_de.ClassA1_de; | ||
END StructB0_de; | ||
|
||
CLASS ClassB1_de = | ||
attrB_de : TEXT*60; | ||
attrRef_de : StructB0_de; | ||
END ClassB1_de; | ||
|
||
ASSOCIATION a2b_de = | ||
a_de (EXTERNAL) -- {0..1} Translation23_de.TestA_de.ClassA1_de; | ||
b_de -- {0..*} ClassB1_de; | ||
END a2b_de; | ||
|
||
END TestB_de; | ||
|
||
END Translation23_de. | ||
|
||
MODEL Translation23_fr (fr) | ||
AT "mailto:noreply@localhost" VERSION "2021-09-07" | ||
TRANSLATION OF Translation23_de ["2021-09-07"] | ||
= | ||
TOPIC TestA_fr = | ||
OID AS INTERLIS.UUIDOID; | ||
|
||
CLASS ClassA1_fr = | ||
attrA_fr : TEXT*60; | ||
END ClassA1_fr; | ||
|
||
END TestA_fr; | ||
|
||
TOPIC TestB_fr = | ||
OID AS INTERLIS.UUIDOID; | ||
DEPENDS ON TestA_fr; | ||
|
||
STRUCTURE StructB0_fr = | ||
refA_fr : MANDATORY REFERENCE TO (EXTERNAL) Translation23_fr.TestA_fr.ClassA1_fr; | ||
END StructB0_fr; | ||
|
||
CLASS ClassB1_fr = | ||
attrB_fr : TEXT*60; | ||
attrRef_fr : StructB0_fr; | ||
END ClassB1_fr; | ||
|
||
ASSOCIATION a2b_fr = | ||
a_fr (EXTERNAL) -- {0..1} Translation23_fr.TestA_fr.ClassA1_fr; | ||
b_fr -- {0..*} ClassB1_fr; | ||
END a2b_fr; | ||
|
||
END TestB_fr; | ||
|
||
END Translation23_fr. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><TRANSFER xmlns="http://www.interlis.ch/INTERLIS2.3"> | ||
<HEADERSECTION SENDER="IOX" VERSION="2.3"><MODELS><MODEL NAME="Translation23_de" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL><MODEL NAME="Translation23_fr" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL></MODELS></HEADERSECTION> | ||
<DATASECTION> | ||
<Translation23_de.TestA_de BID="b1"> | ||
<Translation23_de.TestA_de.ClassA1_de TID="f72512fe-6813-4f00-9564-8682cdc8d5e6"></Translation23_de.TestA_de.ClassA1_de> | ||
</Translation23_de.TestA_de> | ||
<Translation23_de.TestB_de BID="b2"> | ||
<Translation23_de.TestB_de.ClassB1_de TID="82e60911-1779-4a4e-bcd4-ce3f3573f410"><a_de REF="f72512fe-6813-4f00-9564-8682cdc8d5e6"></a_de></Translation23_de.TestB_de.ClassB1_de> | ||
</Translation23_de.TestB_de> | ||
</DATASECTION> | ||
</TRANSFER> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><TRANSFER xmlns="http://www.interlis.ch/INTERLIS2.3"> | ||
<HEADERSECTION SENDER="IOX" VERSION="2.3"><MODELS><MODEL NAME="Translation23_de" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL><MODEL NAME="Translation23_fr" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL></MODELS></HEADERSECTION> | ||
<DATASECTION> | ||
<Translation23_de.TestA_de BID="b1"> | ||
<Translation23_fr.TestA_fr.ClassA1_fr TID="f72512fe-6813-4f00-9564-8682cdc8d5e6"></Translation23_fr.TestA_fr.ClassA1_fr> | ||
</Translation23_de.TestA_de> | ||
<Translation23_fr.TestB_fr BID="b2"> | ||
<Translation23_de.TestB_de.ClassB1_de TID="82e60911-1779-4a4e-bcd4-ce3f3573f410"><a_de REF="f72512fe-6813-4f00-9564-8682cdc8d5e6"></a_de></Translation23_de.TestB_de.ClassB1_de> | ||
</Translation23_fr.TestB_fr> | ||
</DATASECTION> | ||
</TRANSFER> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><TRANSFER xmlns="http://www.interlis.ch/INTERLIS2.3"> | ||
<HEADERSECTION SENDER="IOX" VERSION="2.3"><MODELS><MODEL NAME="Translation23_de" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL><MODEL NAME="Translation23_fr" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL></MODELS></HEADERSECTION> | ||
<DATASECTION> | ||
<Translation23_de.TestA_de BID="b1"> | ||
<Translation23_de.TestA_de.ClassA1_de TID="f72512fe-6813-4f00-9564-8682cdc8d5e6"></Translation23_de.TestA_de.ClassA1_de> | ||
</Translation23_de.TestA_de> | ||
<Translation23_fr.TestB_fr BID="b2"> | ||
<Translation23_fr.TestB_fr.ClassB1_fr TID="82e60911-1779-4a4e-bcd4-ce3f3573f410"><a_fr REF="f72512fe-6813-4f00-9564-8682cdc8d5e6"></a_fr></Translation23_fr.TestB_fr.ClassB1_fr> | ||
</Translation23_fr.TestB_fr> | ||
</DATASECTION> | ||
</TRANSFER> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><TRANSFER xmlns="http://www.interlis.ch/INTERLIS2.3"> | ||
<HEADERSECTION SENDER="IOX" VERSION="2.3"><MODELS><MODEL NAME="Translation23_de" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL><MODEL NAME="Translation23_fr" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL></MODELS></HEADERSECTION> | ||
<DATASECTION> | ||
<Translation23_fr.TestA_fr BID="b1"> | ||
<Translation23_fr.TestA_fr.ClassA1_fr TID="f72512fe-6813-4f00-9564-8682cdc8d5e6"></Translation23_fr.TestA_fr.ClassA1_fr> | ||
</Translation23_fr.TestA_fr> | ||
<Translation23_fr.TestB_fr BID="b2"> | ||
<Translation23_fr.TestB_fr.ClassB1_fr TID="82e60911-1779-4a4e-bcd4-ce3f3573f410"><a_fr REF="f72512fe-6813-4f00-9564-8682cdc8d5e6"></a_fr></Translation23_fr.TestB_fr.ClassB1_fr> | ||
</Translation23_fr.TestB_fr> | ||
</DATASECTION> | ||
</TRANSFER> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><TRANSFER xmlns="http://www.interlis.ch/INTERLIS2.3"> | ||
<HEADERSECTION SENDER="IOX" VERSION="2.3"><MODELS><MODEL NAME="Translation23_de" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL><MODEL NAME="Translation23_fr" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL></MODELS></HEADERSECTION> | ||
<DATASECTION> | ||
<Translation23_de.TestA_de BID="b1"> | ||
<Translation23_de.TestA_de.ClassA1_de TID="f72512fe-6813-4f00-9564-8682cdc8d5e6"></Translation23_de.TestA_de.ClassA1_de> | ||
</Translation23_de.TestA_de> | ||
<Translation23_de.TestB_de BID="b2"> | ||
<Translation23_de.TestB_de.ClassB1_de TID="82e60911-1779-4a4e-bcd4-ce3f3573f410"><attrRef_de><Translation23_de.TestB_de.StructB0_de><refA_de REF="f72512fe-6813-4f00-9564-8682cdc8d5e6"></refA_de></Translation23_de.TestB_de.StructB0_de></attrRef_de></Translation23_de.TestB_de.ClassB1_de> | ||
</Translation23_de.TestB_de> | ||
</DATASECTION> | ||
</TRANSFER> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><TRANSFER xmlns="http://www.interlis.ch/INTERLIS2.3"> | ||
<HEADERSECTION SENDER="IOX" VERSION="2.3"><MODELS><MODEL NAME="Translation23_de" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL><MODEL NAME="Translation23_fr" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL></MODELS></HEADERSECTION> | ||
<DATASECTION> | ||
<Translation23_de.TestA_de BID="b1"> | ||
<Translation23_fr.TestA_fr.ClassA1_fr TID="f72512fe-6813-4f00-9564-8682cdc8d5e6"></Translation23_fr.TestA_fr.ClassA1_fr> | ||
</Translation23_de.TestA_de> | ||
<Translation23_fr.TestB_fr BID="b2"> | ||
<Translation23_de.TestB_de.ClassB1_de TID="82e60911-1779-4a4e-bcd4-ce3f3573f410"><attrRef_de><Translation23_de.TestB_de.StructB0_de><refA_de REF="f72512fe-6813-4f00-9564-8682cdc8d5e6"></refA_de></Translation23_de.TestB_de.StructB0_de></attrRef_de></Translation23_de.TestB_de.ClassB1_de> | ||
</Translation23_fr.TestB_fr> | ||
</DATASECTION> | ||
</TRANSFER> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><TRANSFER xmlns="http://www.interlis.ch/INTERLIS2.3"> | ||
<HEADERSECTION SENDER="IOX" VERSION="2.3"><MODELS><MODEL NAME="Translation23_de" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL><MODEL NAME="Translation23_fr" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL></MODELS></HEADERSECTION> | ||
<DATASECTION> | ||
<Translation23_de.TestA_de BID="b1"> | ||
<Translation23_de.TestA_de.ClassA1_de TID="f72512fe-6813-4f00-9564-8682cdc8d5e6"></Translation23_de.TestA_de.ClassA1_de> | ||
</Translation23_de.TestA_de> | ||
<Translation23_fr.TestB_fr BID="b2"> | ||
<Translation23_fr.TestB_fr.ClassB1_fr TID="82e60911-1779-4a4e-bcd4-ce3f3573f410"><attrRef_fr><Translation23_fr.TestB_fr.StructB0_fr><refA_fr REF="f72512fe-6813-4f00-9564-8682cdc8d5e6"></refA_fr></Translation23_fr.TestB_fr.StructB0_fr></attrRef_fr></Translation23_fr.TestB_fr.ClassB1_fr> | ||
</Translation23_fr.TestB_fr> | ||
</DATASECTION> | ||
</TRANSFER> |
11 changes: 11 additions & 0 deletions
11
test/data/Translation/refattr_translated2translated_Ok.xtf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><TRANSFER xmlns="http://www.interlis.ch/INTERLIS2.3"> | ||
<HEADERSECTION SENDER="IOX" VERSION="2.3"><MODELS><MODEL NAME="Translation23_de" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL><MODEL NAME="Translation23_fr" VERSION="2021-09-07" URI="mailto:noreply@localhost"></MODEL></MODELS></HEADERSECTION> | ||
<DATASECTION> | ||
<Translation23_fr.TestA_fr BID="b1"> | ||
<Translation23_fr.TestA_fr.ClassA1_fr TID="f72512fe-6813-4f00-9564-8682cdc8d5e6"></Translation23_fr.TestA_fr.ClassA1_fr> | ||
</Translation23_fr.TestA_fr> | ||
<Translation23_fr.TestB_fr BID="b2"> | ||
<Translation23_fr.TestB_fr.ClassB1_fr TID="82e60911-1779-4a4e-bcd4-ce3f3573f410"><attrRef_fr><Translation23_fr.TestB_fr.StructB0_fr><refA_fr REF="f72512fe-6813-4f00-9564-8682cdc8d5e6"></refA_fr></Translation23_fr.TestB_fr.StructB0_fr></attrRef_fr></Translation23_fr.TestB_fr.ClassB1_fr> | ||
</Translation23_fr.TestB_fr> | ||
</DATASECTION> | ||
</TRANSFER> |
Oops, something went wrong.