Fixed serializing external_variable. We shoud not allow to use API to create invalid output. Create "possible_restriction" node only if there will be some "restriction" children, because each "possible_restriction" node must have at least one "restriction" child.
Fixed serializing external_variable.
We shoud not allow to use API to create invalid output.
Create "possible_restriction" node only if there will be some
"restriction" children, because each "possible_restriction"
node must have at least one "restriction" child.

redhatrises/openscap,postfix/openscap,jan-cerny/openscap,postfix/openscap,mpreisler/openscap,redhatrises/openscap,postfix/openscap,Hexadorsimal/openscap,openprivacy/openscap,Hexadorsimal/openscap,Hexadorsimal/openscap,ybznek/openscap,ybznek/openscap,Hexadorsimal/openscap,OpenSCAP/openscap,redhatrises/openscap,openprivacy/openscap,postfix/openscap,jan-cerny/openscap,mpreisler/openscap,redhatrises/openscap,Hexadorsimal/openscap,jan-cerny/openscap,ybznek/openscap,redhatrises/openscap,openprivacy/openscap,postfix/openscap,redhatrises/openscap,jan-cerny/openscap,ybznek/openscap,openprivacy/openscap,jan-cerny/openscap,OpenSCAP/openscap,mpreisler/openscap,openprivacy/openscap,OpenSCAP/openscap,OpenSCAP/openscap,postfix/openscap,openprivacy/openscap,OpenSCAP/openscap,jan-cerny/openscap,mpreisler/openscap,mpreisler/openscap,mpreisler/openscap,Hexadorsimal/openscap,ybznek/openscap,ybznek/openscap,OpenSCAP/openscap