13 lines
734 B
Plaintext
13 lines
734 B
Plaintext
<!--
|
|
These are the GHNs that are declared certified and must be passed to
|
|
down status.
|
|
The choice is done by minutes elapsed from last update.
|
|
-->
|
|
let $RIs := collection("/db/Profiles/RunningInstance")//Document/Data/child::*[local-name()='Profile']/Resource
|
|
for $GHNs in collection("/db/Profiles/GHN")//Document/Data/child::*[local-name()='Profile']/Resource
|
|
let $totalminutes := hours-from-dateTime($GHNs/Profile/GHNDescription/LastUpdate/text())
|
|
let $RIinstalled := $RIs[Profile/GHN/string(@UniqueID)=$GHNs/ID]
|
|
let $scopes := string-join( $GHNs/Scopes//Scope/text(), ';')
|
|
where ($GHNs/Profile/GHNDescription/Status/string() eq 'down' or $GHNs/Profile/GHNDescription/Status/string() eq 'unreachable')
|
|
return
|
|
<RESOURCE/> |