SDK 1.9.0 notice type 29- OPT-301-Tenderer-MainCont mandatory but not OPT-301-Tenderer-SubCont #917
-
Hello, OPT-301-Tenderer-MainCont is mandatory when OPT-300-Tenderer is filled (BR-OPT-00301-0187) Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The context for the rule BR-OPT-00301-0187 is the node ND-SubContractor hence only applies when efac:Subcontractor exists.
The display group GR-Tenderer-Main-Contractor-Id is inside GR-Subcontractor because it lists "the Main Tenderers a SubContractor would be providing services to" (OPT-301-Tenderer-MainCont); its associated label is also "Subcontractor taker". |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer @YvesJo. Our developpers state that "efac:subcontractor" is a mandatory element in the XML (when efac:TenderingParty exists) as it contains the field "OPT-301-Tenderer-MainCont" that, for them, is mandatory when OPT-300-Tenderer is filled. Do you agree on that statement ? "efac:subcontractor" should exist by default when "efac: TenderingParty" exists in the XML ? Or not? |
Beta Was this translation helpful? Give feedback.
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…