4 Replies Latest reply on Feb 14, 2013 8:41 PM by Tadayoshi Sato

    Does XML Validator support XML Catalogs?

    Tadayoshi Sato Novice

      Hello,

       

      I'm wondering if XML Validator ( https://docs.jboss.org/author/display/SWITCHYARD/Validation ) supports XML Catalogs. In other words, can I use an XML schema like below [1] and resolve it based on the following META-INF/jax-ws-catalog.xml [2] ?

       

      [1]

      <?xml version="1.0" encoding="UTF-8"?>
      <schema xmlns="http://www.w3.org/2001/XMLSchema"
              targetNamespace="urn:switchyard-quickstart:validate-xml:0.1.0" 
              xmlns:orders="urn:switchyard-quickstart:validate-xml:0.1.0">
              <xs:import namespace="urn:common-types" schemaLocation="http://www.example.com/types/common.xsd"/>
              ...
      </schema>
      

       

      [2]

      <?xml version="1.0" encoding="UTF-8"?>
      <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
        <system systemId="http://www.example.com/types/common.xsd"  uri="/xsd/common.xsd" />
        ...
      </catalog>
      
      

       

      I found this as a common use case. If this is not yet a supported feature, I'll create a JIRA to deal with it.

       

      Thanks!

       

      Tadayoshi