Skip to content

SDK 1.9.0 notice type 29- OPT-301-Tenderer-MainCont mandatory but not OPT-301-Tenderer-SubCont #917

Answered by YvesJo
luispozoWS asked this question in Q&A
Discussion options

You must be logged in to vote

The context for the rule BR-OPT-00301-0187 is the node ND-SubContractor hence only applies when efac:Subcontractor exists.
For efac:SubContractor to exist, its child cbc:ID (OPT-301-Tenderer-SubCont) shall also exist (required by the XSD and no empty nodes allowed).
It is not possible to mark OPT-301-Tenderer-SubCont as mandatory as there may be no subcontractors. To identify "the Main Tenderers a SubContractor would be providing services to" (OPT-301-Tenderer-MainCont), the user shall first identify the SubContractor (OPT-301-Tenderer-SubCont).
As the validation process starts with the lexical validation (XSD conformance) before any schematron rule is applied, when the XML does not compl…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by YvesJo
Comment options

You must be logged in to vote
1 reply
@YvesJo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
fields Related to field metadata (/fields/fields.json) schematrons Related to the Schematron validation (/schematrons SDK folder)
2 participants