Rules
VRBL-DES-TR-1p2-11
Basic Info
| Rule | When the Shipment Group contains a Shipment Driver Person Group, it must contain a non-empty road-transport Shipment Transport Means Road Transport License Plate ID with scheme VRBL:TR:PLAKA or VRBL:TR:YABANCIPLAKA. |
| Context |
/ubl:DespatchAdvice/cac:Shipment
|
| Pattern | vrbl-despatchadvice-tr-1p2 |
| Severity | fatal |
Implementation
count(cac:ShipmentStage/cac:DriverPerson) = 0
or
count(cac:ShipmentStage/cac:TransportMeans/cac:RoadTransport/cbc:LicensePlateID[
(
@schemeID = concat($VRBL-TR-Prefix, 'PLAKA')
or
@schemeID = concat($VRBL-TR-Prefix, 'YABANCIPLAKA')
)
and
string-length(normalize-space(.)) > 0
]) > 0