<?xml version="1.0" encoding="UTF-8"?>
<scenarios xmlns="http://www.xoev.de/de/validator/framework/1/scenarios"
  frameworkVersion="1.0.0">
  <name>Validator Configuration ZUGFeRD 2.3.3</name>
  <author>
	datamat Software Development
  </author>
  <date>2025-09-24</date>
  <description>
  <p>ZUGFeRD Validator Configuration Factur-X 1.07.3/ZUGFeRD 2.3.3</p>
  </description>
  
  <scenario>
    <name>EN16931 Factur-X 1.07.3/ZUGFeRD 2.3.3 Extended (CII)</name>
    <description>
      <p>Validates ZUGFeRD/Factur-X Profile Extended via Schema version D22B</p>
    </description>
    <!-- CII namespaces -->
    <namespace prefix="rsm">urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100</namespace>
    <namespace prefix="ram">urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100</namespace>
    <!-- Namespace for acceptMatch XPATH within validator report XML -->
    <namespace prefix="rep">http://www.xoev.de/de/validator/varl/1</namespace>

    <match>
       exists(/rsm:CrossIndustryInvoice[ rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID/text() = 'urn:cen.eu:en16931:2017#conformant#urn:factur-x.eu:1p0:extended']) <!-- ZUGFeRD 2.3 -->
		or exists(/rsm:CrossIndustryInvoice[ rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID/text() = 'urn:cen.eu:en16931:2017#conformant#urn:zugferd.de:2p0:extended']) <!-- old 2.0 version -->
    </match>
    <validateWithXmlSchema>
      <resource>
<!--    <name>UN/CEFACT XML Schema for Cross Industry Invoice (CII)</name>
        <location>resources/factur-x/factur-x-1.07.3/5.%20CII%20D22B%20XSD/CrossIndustryInvoice_100pD22B.xsd</location>  -->
        <name>XML Schema for FACTUR-X; 1.0; EN16931-CONFORMANT-EXTENDED</name>
        <location>resources/factur-x/factur-x-1.07.3/4.%20Factur-X_1.07.3_EXTENDED/Factur-X_1.07.3_EXTENDED.xsd</location>
      </resource>
    </validateWithXmlSchema>
    <validateWithSchematron>
      <resource>
        <name>Schematron rules for Factur-X; 1.07.3; EN16931-CONFORMANT-EXTENDED</name>
<!--        <location>resources/factur-x/factur-x-1.07.3/4.%20Factur-X_1.07.3_EXTENDED/_XSLT_EXTENDED/FACTUR-X_EXTENDED.xslt</location> -->
        <location>resources/factur-x/Factur-X-1.07.3_EXTENDED.xslt</location> <!-- use human-readable-paths -->
      </resource>
    </validateWithSchematron>

    <createReport>
      <resource>
        <name>Validation report for ZUGFeRD/Factur-X Profile Extended</name>
        <location>resources/xrechnung-report.xsl</location>
      </resource>
    </createReport>
    <acceptMatch>/rep:report/rep:assessment[1]/rep:accept[1]</acceptMatch>
  </scenario>

  <scenario>
    <name>EN16931 Factur-X 1.07.3/ZUGFeRD 2.3.3 Basic (CII)</name>
    <description>
      <p>Validates ZUGFeRD/Factur-X Profile Basic via Schema version D22B</p>
    </description>
    <!-- CII namespaces -->
    <namespace prefix="rsm">urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100</namespace>
    <namespace prefix="ram">urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100</namespace>
    <!-- Namespace for acceptMatch XPATH within validator report XML -->
    <namespace prefix="rep">http://www.xoev.de/de/validator/varl/1</namespace>

    <match>
       exists(/rsm:CrossIndustryInvoice[ rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID/text() = 'urn:cen.eu:en16931:2017#compliant#urn:factur-x.eu:1p0:basic']) <!-- ZUGFeRD 2.3 -->
    </match>
    <validateWithXmlSchema>
      <resource>
<!--    <name>UN/CEFACT XML Schema for Cross Industry Invoice (CII)</name>
        <location>resources/factur-x/factur-x-1.07.3/5.%20CII%20D22B%20XSD/CrossIndustryInvoice_100pD22B.xsd</location>  -->
        <name>XML Schema for FACTUR-X; 1.0; BASIC</name>
        <location>resources/factur-x/factur-x-1.07.3/2.%20Factur-X_1.07.3_BASIC/Factur-X_1.07.3_BASIC.xsd</location>
      </resource>
    </validateWithXmlSchema>
    <validateWithSchematron>
      <resource>
        <name>Schematron rules for Factur-X; 1.07.3; BASIC</name>
<!--        <location>resources/factur-x/factur-x-1.07.3/2.%20Factur-X_1.07.3_BASIC/_XSLT_BASIC/FACTUR-X_BASIC.xslt</location> -->
        <location>resources/factur-x/Factur-X-1.07.3_BASIC.xslt</location> <!-- use human-readable-paths -->
      </resource>
    </validateWithSchematron>

    <createReport>
      <resource>
        <name>Validation report for ZUGFeRD/Factur-X Profile Basic</name>
        <location>resources/xrechnung-report.xsl</location>
      </resource>
    </createReport>
    <acceptMatch>/rep:report/rep:assessment[1]/rep:accept[1]</acceptMatch>
  </scenario>

  <scenario>
    <name>EN16931 Factur-X 1.07.3/ZUGFeRD 2.3.3 BasicWL (CII)</name>
    <description>
      <p>Validates ZUGFeRD/Factur-X Profile BasicWL via Schema version D22B</p>
    </description>
    <!-- CII namespaces -->
    <namespace prefix="rsm">urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100</namespace>
    <namespace prefix="ram">urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100</namespace>
    <!-- Namespace for acceptMatch XPATH within validator report XML -->
    <namespace prefix="rep">http://www.xoev.de/de/validator/varl/1</namespace>

    <match>
       exists(/rsm:CrossIndustryInvoice[ rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID/text() = 'urn:factur-x.eu:1p0:basicwl']) <!-- ZUGFeRD 2.3 -->
    </match>
    <validateWithXmlSchema>
      <resource>
<!--    <name>UN/CEFACT XML Schema for Cross Industry Invoice (CII)</name>
        <location>resources/factur-x/factur-x-1.07.3/5.%20CII%20D22B%20XSD/CrossIndustryInvoice_100pD22B.xsd</location>  -->
        <name>XML Schema for FACTUR-X; 1.0; ACCOUNTING INFORMATION, No XML Invoice, (BASIC WITHOUT LINE)</name>
        <location>resources/factur-x/factur-x-1.07.3/1.%20Factur-X_1.07.3_BASICWL/Factur-X_1.07.3_BASICWL.xsd</location>
      </resource>
    </validateWithXmlSchema>
    <validateWithSchematron>
      <resource>
        <name>Schematron rules for Factur-X; 1.07.3; EN16931-COMPLIANT-BASICWL</name>
<!--        <location>resources/factur-x/factur-x-1.07.3/2.%20Factur-X_1.07.3_BASIC/_XSLT_BASIC/FACTUR-X_BASIC.xslt</location> -->
        <location>resources/factur-x/Factur-X-1.07.3_BASICWL.xslt</location> <!-- use human-readable-paths -->
      </resource>
    </validateWithSchematron>

    <createReport>
      <resource>
        <name>Validation report for ZUGFeRD/Factur-X Profile BasicWL</name>
        <location>resources/xrechnung-report.xsl</location>
      </resource>
    </createReport>
    <acceptMatch>/rep:report/rep:assessment[1]/rep:accept[1]</acceptMatch>
  </scenario>
  
   <scenario>
    <name>EN16931 Factur-X 1.07.3/ZUGFeRD 2.3.3 Comfort (CII)</name>
    <description>
      <p>Validates ZUGFeRD/Factur-X Profile Comfort (EN16931) via Schema version D22B</p>
    </description>
    <!-- CII namespaces -->
    <namespace prefix="rsm">urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100</namespace>
    <namespace prefix="ram">urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100</namespace>
    <!-- Namespace for acceptMatch XPATH within validator report XML -->
    <namespace prefix="rep">http://www.xoev.de/de/validator/varl/1</namespace>

    <match>
     exists(/rsm:CrossIndustryInvoice[ rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID/text() = 'urn:cen.eu:en16931:2017']) <!-- ZUGFeRD 2.3 -->
      or exists(/rsm:CrossIndustryInvoice[ rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID/text() = 'urn:cen.eu:en16931:2017#conformant#urn:factur-x.eu:1p0:comfort']) 
   
    </match>
    <validateWithXmlSchema>
      <resource>
<!--    <name>UN/CEFACT XML Schema for Cross Industry Invoice (CII)</name>
        <location>resources/factur-x/factur-x-1.07.3/5.%20CII%20D22B%20XSD/CrossIndustryInvoice_100pD22B.xsd</location>  -->
        <name>XML Schema for FACTUR-X; 1.0; EN16931-CONFORMANT-COMFORT</name>
        <location>resources/factur-x/factur-x-1.07.3/3.%20Factur-X_1.07.3_EN16931/Factur-X_1.07.3_EN16931.xsd</location>
      </resource>
    </validateWithXmlSchema>
    <validateWithSchematron>
      <resource>
        <name>Schematron rules for Factur-X; 1.07.3; EN16931-COMPLIANT (FULLY)</name>
 <!--       <location>resources/factur-x/factur-x-1.07.3/3.%20Factur-X_1.07.3_EN16931/_XSLT_EN16931/FACTUR-X_EN16931.xslt</location> -->
         <location>resources/factur-x/Factur-X-1.07.3_EN16931.xslt</location> <!-- use human-readable-paths -->
      </resource>
    </validateWithSchematron>

    <createReport>
      <resource>
        <name>Validation report for ZUGFeRD/Factur-X Comfort (EN16931)</name>
        <location>resources/xrechnung-report.xsl</location>
      </resource>
    </createReport>
    <acceptMatch>/rep:report/rep:assessment[1]/rep:accept[1]</acceptMatch>
  </scenario>

   <scenario>
    <name>EN16931 Factur-X 1.07.3/ZUGFeRD 2.3.3 Minimum (CII)</name>
    <description>
      <p>Validates ZUGFeRD/Factur-X Profile MINIMUM via Schema version D22B</p>
    </description>
    <!-- CII namespaces -->
    <namespace prefix="rsm">urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100</namespace>
    <namespace prefix="ram">urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100</namespace>
    <!-- Namespace for acceptMatch XPATH within validator report XML -->
    <namespace prefix="rep">http://www.xoev.de/de/validator/varl/1</namespace>

    <match>
       exists(/rsm:CrossIndustryInvoice[ rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID/text() = 'urn:factur-x.eu:1p0:minimum']) <!-- ZUGFeRD 2.3 -->
       
    </match>
    <validateWithXmlSchema>
      <resource>
<!--    <name>UN/CEFACT XML Schema for Cross Industry Invoice (CII)</name>
        <location>resources/factur-x/factur-x-1.07.3/5.%20CII%20D22B%20XSD/CrossIndustryInvoice_100pD22B.xsd</location>  -->
        <name>XML Schema for FACTUR-X; 1.0; ACCOUNTING INFORMATION, No XML Invoice, (MINIMUM)</name>
        <location>resources/factur-x/factur-x-1.07.3/0.%20Factur-X_1.07.3_MINIMUM/Factur-X_1.07.3_MINIMUM.xsd</location>
      </resource>
    </validateWithXmlSchema>
    <validateWithSchematron>
      <resource>
        <name>Schematron rules for Factur-X; 1.07.3; ACCOUNTING INFORMATION, No XML Invoice, (MINIMUM)</name>
 <!--       <location>resources/factur-x/factur-x-1.07.3/3.%20Factur-X_1.07.3_MINIMUM/_XSLT_MINIMUM/FACTUR-X_MINIMUM.xslt</location> -->
         <location>resources/factur-x/Factur-X-1.07.3_MINIMUM.xslt</location> <!-- use human-readable-paths -->
      </resource>
    </validateWithSchematron>

    <createReport>
      <resource>
        <name>Validation report for ZUGFeRD/Factur-X MINIMUM</name>
        <location>resources/xrechnung-report.xsl</location>
      </resource>
    </createReport>
    <acceptMatch>/rep:report/rep:assessment[1]/rep:accept[1]</acceptMatch>
  </scenario>

  <!-- In case none of the aboce scenarios matched/were applied -->
  <noScenarioReport>
    <resource>
      <name>Default Report</name>
      <location>resources/default-report.xsl</location>
    </resource>
  </noScenarioReport>
</scenarios>

