Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
14859481
Commit
14859481
authored
Mar 31, 2023
by
Matthias Betz
Browse files
fixing schematron test after changing the result structure
parent
d25c9448
Pipeline
#7241
passed with stage
in 1 minute and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorValidation/src/test/resources/schematronTest.xml
View file @
14859481
...
...
@@ -5,13 +5,13 @@
<pattern>
<rule
context=
"//*:Building"
>
<assert
test=
"count(*:lod2Solid) = 1"
><value-of
select=
"@gml:id | @id"
/>
||||SE_ATTRIBUTE_MISSING||lod1Solid
||false
</assert>
<assert
test=
"count(*:yearOfConstruction) >= 1"
><value-of
select=
"@gml:id | @id"
/>
||||SE_ATTRIBUTE_MISSING||yearOfConstruction
||false
</assert>
<assert
test=
"count(*:function) = 1"
><value-of
select=
"@gml:id | @id"
/>
||||SE_ATTRIBUTE_MISSING||function
||false
</assert>
<assert
test=
"*:doubleAttribute[@name = 'Volume'] > 0 and *:doubleAttribute[@name = 'Volume'] < 5000"
><value-of
select=
"@gml:id | @id"
/>
||||SE_ATTRIBUTE_WRONG_VALUE||volume
||true
</assert>
<assert
test=
"count(*:lod2Solid) = 1"
><value-of
select=
"@gml:id | @id"
/>
||||SE_ATTRIBUTE_MISSING||lod1Solid
</assert>
<assert
test=
"count(*:yearOfConstruction) >= 1"
><value-of
select=
"@gml:id | @id"
/>
||||SE_ATTRIBUTE_MISSING||yearOfConstruction
</assert>
<assert
test=
"count(*:function) = 1"
><value-of
select=
"@gml:id | @id"
/>
||||SE_ATTRIBUTE_MISSING||function
</assert>
<assert
test=
"*:doubleAttribute[@name = 'Volume'] > 0 and *:doubleAttribute[@name = 'Volume'] < 5000"
><value-of
select=
"@gml:id | @id"
/>
||||SE_ATTRIBUTE_WRONG_VALUE||volume
</assert>
</rule>
<rule
context=
"//*:Building//*:RoofSurface"
>
<assert
test=
"count(function) = 1"
><value-of
select=
"ancestor::*:Building/@*:id"
/>
||
<value-of
select=
"@gml:id | @id"
/>
||SE_ATTRIBUTE_MISSING||function
||false
</assert>
<assert
test=
"count(function) = 1"
><value-of
select=
"ancestor::*:Building/@*:id"
/>
||
<value-of
select=
"@gml:id | @id"
/>
||SE_ATTRIBUTE_MISSING||function
</assert>
</rule>
</pattern>
</schema>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment