I have two nodes
leaf xyz{
type uint8 {
range "1..32";
}
mandatory true;
}
leaf-list aaa {
must "(count(.) == ../xyz)" {
error-message "Number of elements in leaf-list aaa must be equal to number of xyz";
}
type uint8;
min-elements 1;
}
But I get “error: XPath error: XPath syntax error”. Can anyone please suggest a way to fix this ?