Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Feb 20, 2024
1 parent 46aea8a commit d0d216f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@
<groupId>org.oasis-open.ubl</groupId>
<artifactId>creditnote</artifactId>
<version>2.1</version>

<namespaces>
<!-- redefined only this prefix -->
<namespace prefix="ubl" uri="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2" overwrite="true" />
</namespaces>
</requires>

<schematron>
Expand All @@ -47,5 +42,15 @@
<type>xslt</type>
</resource>
<engine>iso-schematron</engine>

<namespaces>
<namespace prefix="ubl" uri="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2" />
<namespace prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance" />
<namespace prefix="xs" uri="http://www.w3.org/2001/XMLSchema" />
<namespace prefix="cac" uri="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" />
<namespace prefix="cbc" uri="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" />
<namespace prefix="cec" uri="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" />
<namespace prefix="ds" uri="http://www.w3.org/2000/09/xmldsig#" />
</namespaces>
</schematron>
</ves>
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@
<groupId>org.oasis-open.ubl</groupId>
<artifactId>invoice</artifactId>
<version>2.1</version>

<namespaces>
<!-- redefined only this prefix -->
<namespace prefix="ubl" uri="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" overwrite="true" />
</namespaces>
</requires>

<schematron>
Expand All @@ -49,6 +44,17 @@
<!--
<precondition type="xpath">/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'AT'</precondition>
-->
<!--
<namespaces>
<namespace prefix="ubl" uri="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" />
<namespace prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance" />
<namespace prefix="xs" uri="http://www.w3.org/2001/XMLSchema" />
<namespace prefix="cac" uri="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" />
<namespace prefix="cbc" uri="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" />
<namespace prefix="cec" uri="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" />
<namespace prefix="ds" uri="http://www.w3.org/2000/09/xmldsig#" />
</namespaces>
-->
<!--
<input>
<option name="language" value="en" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,5 @@
</resource>
<!-- when resource is ZIP, main is needed -->
<main>xsdrt/maindoc/UBL-CreditNote-2.1.xsd</main>
<!--
<namespaces>
<namespace prefix="" uri="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2" />
<namespace prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance" />
<namespace prefix="xs" uri="http://www.w3.org/2001/XMLSchema" />
<namespace prefix="cac" uri="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" />
<namespace prefix="cbc" uri="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" />
<namespace prefix="cec" uri="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" />
<namespace prefix="ds" uri="http://www.w3.org/2000/09/xmldsig#" />
</namespaces>
-->
</xsd>
</ves>
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,6 @@ REWRITE_SYSTEM "StandardBusinessDocumentHeader.xsd" "maven:com.helger:ph-sbdh:ja
</resource>
</system>
</catalog>
<!--
<namespaces>
<namespace prefix="" uri="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" />
<namespace prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance" />
<namespace prefix="xs" uri="http://www.w3.org/2001/XMLSchema" />
<namespace prefix="cac" uri="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" />
<namespace prefix="cbc" uri="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" />
<namespace prefix="cec" uri="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" />
<namespace prefix="ds" uri="http://www.w3.org/2000/09/xmldsig#" />
</namespaces>
-->
<!--
<precondition type="xpath">count(/Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/ds:Signature)</precondition>
-->
Expand Down

0 comments on commit d0d216f

Please sign in to comment.