CICS

CICS

CICS

The world's leading application server software for IBM Z

 View Only
  • 1.  help with DFHSC2LS

    Posted Tue June 18, 2024 01:56 PM

    I have an XSD that has imports of "contained" schema.  Those schema are in a USS directory.  Is this something that is supported?

    Below is part of the containing schema.

    <xs:schema elementFormDefault="qualified"
               targetNamespace="urn:fedwirefunds:incoming:v001"
               xmlns="urn:fedwirefunds:incoming:v001"
               xmlns:bah="urn:iso:std:iso:20022:tech:xsd:head.001.001.03"
               xmlns:p8="urn:iso:std:iso:20022:tech:xsd:pacs.008.001.08"
               xmlns:p9="urn:iso:std:iso:20022:tech:xsd:pacs.009.001.08"
               xmlns:p4="urn:iso:std:iso:20022:tech:xsd:pacs.004.001.10"
               xmlns:a4="urn:iso:std:iso:20022:tech:xsd:admi.004.001.02"
               xmlns:a6="urn:iso:std:iso:20022:tech:xsd:admi.006.001.01"
               xmlns:c56="urn:iso:std:iso:20022:tech:xsd:camt.056.001.08"
               xmlns:c29="urn:iso:std:iso:20022:tech:xsd:camt.029.001.09"
               xmlns:p28="urn:iso:std:iso:20022:tech:xsd:pacs.028.001.03"
               xmlns:pain13="urn:iso:std:iso:20022:tech:xsd:pain.013.001.07"
               xmlns:pain14="urn:iso:std:iso:20022:tech:xsd:pain.014.001.07"
               xmlns:c60="urn:iso:std:iso:20022:tech:xsd:camt.060.001.05"
               xmlns:a2="urn:iso:std:iso:20022:tech:xsd:admi.002.001.01"
               xmlns:i110="urn:iso:std:iso:20022:tech:xsd:camt.110.001.01"
               xmlns:i111="urn:iso:std:iso:20022:tech:xsd:camt.111.001.01"
               xmlns:xs="http://www.w3.org/2001/XMLSchema">
    
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:admi.002.001.01" schemaLocation="iso/admi.002.001.01.xsd" />
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:admi.004.001.02" schemaLocation="iso/admi.004.001.02.xsd" />
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:admi.006.001.01" schemaLocation="iso/admi.006.001.01.xsd" />
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:camt.029.001.09" schemaLocation="iso/camt.029.001.09.xsd" />
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:camt.056.001.08" schemaLocation="iso/camt.056.001.08.xsd" />
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:camt.060.001.05" schemaLocation="iso/camt.060.001.05.xsd" />
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:head.001.001.03" schemaLocation="iso/head.001.001.03.xsd" />
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:pacs.004.001.10" schemaLocation="iso/pacs.004.001.10.xsd" />
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:pacs.008.001.08" schemaLocation="iso/pacs.008.001.08.xsd" />
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:pacs.009.001.08" schemaLocation="iso/pacs.009.001.08.xsd" />
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:pacs.028.001.03" schemaLocation="iso/pacs.028.001.03.xsd" />
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:pain.013.001.07" schemaLocation="iso/pain.013.001.07.xsd" />
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:pain.014.001.07" schemaLocation="iso/pain.014.001.07.xsd" />
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:camt.110.001.01" schemaLocation="iso/camt.110.001.01.xsd" />
        <xs:import namespace="urn:iso:std:iso:20022:tech:xsd:camt.111.001.01" schemaLocation="iso/camt.111.001.01.xsd" />
    
        [...]
        <xs:element name="FedwireFundsCustomerCreditTransfer">
            <xs:complexType>
                <xs:sequence>
                    <xs:element ref="bah:AppHdr" />
                    <xs:element ref="p8:Document" />
                </xs:sequence>
            </xs:complexType>
        </xs:element>
        [...]
    </xs:schema>
    

    As you can see, the containing schema has references to namespaces that are defined in the contained schemas.

    The contained schemas are in directory "iso" under the directory in which the containing schema is located.  Here's a small snippet of "iso/head.001.001.03.xsd".

    <xs:schema xmlns="urn:iso:std:iso:20022:tech:xsd:head.001.001.03" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="urn:iso:std:iso:20022:tech:xsd:head.001.001.03">
    [...]
    </schema>
    

    The error I am getting is:

    DFHPI9035E XML Schema element cannot be found in document "/u/dvfjs/Fedwire_ISO20022/xsd/fedwirefunds-incoming.xsd".
    

    Of course the error message doesn't say which elements cannot be found, so I am only guessing that it has to do with the imports.

    Any thoughts?  Thanks.



    ------------------------------
    Frank Swarbrick
    ------------------------------