XSD problem 1
authorVásáry Dániel <vasary@elgekko.net>
Wed, 6 Mar 2024 21:43:19 +0000 (22:43 +0100)
committerVásáry Dániel <vasary@elgekko.net>
Wed, 6 Mar 2024 21:43:19 +0000 (22:43 +0100)
KB.md
sly-crm-service/pom.xml
sly-crm-service/src/main/resources/NAV/catalog.xml [new file with mode: 0644]
sly-crm-service/src/main/resources/NAV/schemas/catalog.xml [deleted file]

diff --git a/KB.md b/KB.md
index 03b0fe70e1ae73c1ada1e867a69eb69fb2b097b2..65006bb9dfef2f5429752097f8dd4c979637c761 100644 (file)
--- a/KB.md
+++ b/KB.md
@@ -126,4 +126,7 @@ org.webjars
 
 ##### DEBUG
 
--Djavax.net.debug=ssl:handshake
\ No newline at end of file
+-Djavax.net.debug=ssl:handshake
+
+xjc -p hu.user.lis.service.nav.data schemas\serviceMetrics.xsd -catalog catalog.xml -d C:
+\work\user\sly-crm\sly-crm-service\src\main\java
\ No newline at end of file
index 6f84d533b35e2530b34d85a859ecb9025be5ec77..0feb93c417f3366e8ab47421b1c3e66a02af7915 100644 (file)
     </parent>
     <build>
         <plugins>
-            <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>jaxb2-maven-plugin</artifactId>
-                <version>3.1.0</version>
-                <executions>
-                    <execution>
-                        <id>xjc</id>
-                        <goals>
-                            <goal>xjc</goal>
-                        </goals>
-                    </execution>
-                </executions>
-                <configuration>
-                    <catalog>src/main/resources/NAV/schemas/catalog.xml</catalog>
-                    <sources>
-                        <source>src/main/resources/NAV/schemas/</source>
-                    </sources>
-                </configuration>
-            </plugin>
+            <!--            <plugin>-->
+            <!--                <groupId>org.codehaus.mojo</groupId>-->
+            <!--                <artifactId>jaxb2-maven-plugin</artifactId>-->
+            <!--                <version>3.1.0</version>-->
+            <!--                <executions>-->
+            <!--                    <execution>-->
+            <!--                        <id>xjc</id>-->
+            <!--                        <goals>-->
+            <!--                            <goal>xjc</goal>-->
+            <!--                        </goals>-->
+            <!--                    </execution>-->
+            <!--                </executions>-->
+            <!--                <configuration>-->
+            <!--                    <catalog>src/main/resources/NAV/catalog.xml</catalog>-->
+            <!--                    <sources>-->
+            <!--                        <source>src/main/resources/NAV/schemas/</source>-->
+            <!--                    </sources>-->
+            <!--                    <clearOutputDir>false</clearOutputDir>-->
+            <!--                    <verbose>true</verbose>-->
+            <!--                </configuration>-->
+            <!--            </plugin>-->
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>jaxws-maven-plugin</artifactId>
diff --git a/sly-crm-service/src/main/resources/NAV/catalog.xml b/sly-crm-service/src/main/resources/NAV/catalog.xml
new file mode 100644 (file)
index 0000000..e0614b1
--- /dev/null
@@ -0,0 +1,19 @@
+<!DOCTYPE catalog
+        PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
+        "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
+
+    <!--    <system-->
+    <!--            systemId="http://schemas.nav.gov.hu/NTCA/1.0/common/common.xsd"-->
+    <!--            uri="common.xsd"/>-->
+    <public
+            publicId="http://schemas.nav.gov.hu/NTCA/1.0/common"
+            uri="schemas/common.xsd"/>
+    <!--    <system-->
+    <!--            systemId="http://schemas.nav.gov.hu/OSA/3.0/base/invoiceBase.xsd"-->
+    <!--            uri="schemas/invoiceBase.xsd"/>-->
+    <public
+            publicId="http://schemas.nav.gov.hu/OSA/3.0/base"
+            uri="schemas/invoiceBase.xsd"/>
+
+</catalog>
diff --git a/sly-crm-service/src/main/resources/NAV/schemas/catalog.xml b/sly-crm-service/src/main/resources/NAV/schemas/catalog.xml
deleted file mode 100644 (file)
index 3886fa4..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<catalog xmlns='urn:oasis:names:tc:entity:xmlns:xml:catalog' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='urn:oasis:names:tc:entity:xmlns:xml:catalog Catalog.xsd' prefer="public">
-<!--reference as name & filepath-->
-       <uri name="http://schemas.nav.gov.hu/NTCA/1.0/common" uri="./files/NTCA/Common/common.xsd"/>
-       <uri name="http://schemas.nav.gov.hu/OSA/3.0/base" uri="./files/OSA/Invoice/invoiceBase.xsd"/>
-<!--reference as name & URI-->
-       <!--<uri name="http://schemas.nav.gov.hu/NTCA/1.0/common" uri="https://raw.githubusercontent.com/nav-gov-hu/Common/Common-1.0.RC3/src/schemas/nav/gov/hu/NTCA/common.xsd"/>-->
-</catalog>
-
-
-<!--<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">-->
-
-<!--reference as publicId & filepath-->
-       <!--<public publicId="http://schemas.nav.gov.hu/NTCA/1.0/common" uri="./files/NTCA/Common/common.xsd"/>-->
-       <!--<public publicId="http://schemas.nav.gov.hu/OSA/3.0/base" uri="./files/OSA/Invoice/invoiceBase.xsd"/>-->
-<!--reference as publicId & URI-->
-       <!--<public publicId="http://schemas.nav.gov.hu/NTCA/1.0/common" uri="https://raw.githubusercontent.com/nav-gov-hu/Common/Common-1.0.RC3/src/schemas/nav/gov/hu/NTCA/common.xsd"/>-->
-<!--</catalog>-->
\ No newline at end of file