matthiasblaesing commented on issue #6226:
URL: https://github.com/apache/netbeans/issues/6226#issuecomment-1646950547

   Your approach is awfully complex. You can use the UI to create your IDE 
catalog:
   
   1. Choose the "User Catalog" (it is the only one marked "read-write") and 
choose "Add Local DTD or Schema";
     ![Bildschirmfoto vom 2023-07-23 
21-50-46](https://github.com/apache/netbeans/assets/2179736/779655fb-aef5-4fe1-951c-c3dbb38aad3d)
   2. Enter the namespace as publicId and choose the local file you want to 
reference:
   ![Bildschirmfoto vom 2023-07-23 
21-54-44](https://github.com/apache/netbeans/assets/2179736/94fdbe00-3993-48ef-a9be-8ebebb4f403d)
   
   Repeat step 2 for all schemas.
   
   If you want to use a catalog, please also use the `publicId` mapping. I 
tested with this catalog:
   
   ```xml
   <?xml version="1.0" encoding="UTF-8"?>
   <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
       <public publicId="urn:ietf:params:xml:ns:rdeHost-1.0" 
uri="rdeHost-1.0.xsd"/>
       <public publicId="urn:ietf:params:xml:ns:rde-1.0 uri" uri="rde-1.0.xsd"/>
       <public publicId="urn:ietf:params:xml:ns:rdeEppParams-1.0" 
uri="rdeEppParams-1.0.xsd"/>
       <public publicId="urn:ietf:params:xml:ns:epp-1.0" uri="epp-1.0.xsd"/>
       <public publicId="urn:ietf:params:xml:ns:rdeCsv-1.0" 
uri="rdeCsv-1.0.xsd"/>
       <public publicId="urn:ietf:params:xml:ns:rdeHeader-1.0" 
uri="rde-header-1.0.xsd"/>
       <public publicId="urn:ietf:params:xml:ns:rdeNNDN-1.0" 
uri="rdeNNDN-1.0.xsd"/>
       <public publicId="urn:ietf:params:xml:ns:rdeIDN-1.0" 
uri="rdeIDN-1.0.xsd"/>
       <public publicId="urn:ietf:params:xml:ns:rdeRegistrar-1.0" 
uri="rdeRegistrar-1.0.xsd"/>
       <public publicId="urn:ietf:params:xml:ns:rdeDomain-1.0" 
uri="rdeDomain-1.0.xsd"/>
       <public publicId="urn:ietf:params:xml:ns:domain-1.0" 
uri="domain-1.0.xsd"/>
       <public publicId="urn:ietf:params:xml:ns:secDNS-1.1" 
uri="secDNS-1.1.xsd"/>
       <public publicId="urn:ietf:params:xml:ns:rdeContact-1.0" 
uri="rdeContact-1.0.xsd"/>
       <public publicId="urn:ietf:params:xml:ns:contact-1.0" 
uri="contact-1.0.xsd"/>
   </catalog>
   ```
   
   Placed in the folder with the XSDs and it works (Validation works too):
   
   
![image](https://github.com/apache/netbeans/assets/2179736/1e64d67d-2c27-4201-8edb-4af79d6dcd0e)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to