engines/servicemix-cxf-se/src/main/java/org/apache/servicemix/cxfse/SchemaUtil.java [268:294]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private void inlineTransformer(String key, Element inlineSchema, Element outerSchema, boolean isInclude) {
        NodeList nl = null;
        if (isInclude) {
            nl = outerSchema.getElementsByTagNameNS(
                    "http://www.w3.org/2001/XMLSchema", "include");
        } else {
            nl = outerSchema.getElementsByTagNameNS(
                    "http://www.w3.org/2001/XMLSchema", "import");
        }
        for (int j = 0; j < nl.getLength(); j++) {
        
            String schemaLocation = ((Element)nl.item(j)).getAttribute("schemaLocation");
            
            if (schemaLocation != null && getXsdFileName(schemaLocation, "/").
                    equals(getXsdFileName(key, "/"))) {
                                            
                outerSchema.removeChild(nl.item(j));
                for (int i = 0; i < inlineSchema.getChildNodes().getLength(); i++) {
                    outerSchema.appendChild(
                            outerSchema.getOwnerDocument().importNode(
                                inlineSchema.getChildNodes().item(i), true));
                }
                outerSchema.setPrefix("xs");
                outerSchema.setAttribute("xmlns:xs", "http://www.w3.org/2001/XMLSchema");
            }
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



bindings/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/SchemaUtil.java [268:294]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private void inlineTransformer(String key, Element inlineSchema, Element outerSchema, boolean isInclude) {
        NodeList nl = null;
        if (isInclude) {
            nl = outerSchema.getElementsByTagNameNS(
                    "http://www.w3.org/2001/XMLSchema", "include");
        } else {
            nl = outerSchema.getElementsByTagNameNS(
                    "http://www.w3.org/2001/XMLSchema", "import");
        }
        for (int j = 0; j < nl.getLength(); j++) {
        
            String schemaLocation = ((Element)nl.item(j)).getAttribute("schemaLocation");
            
            if (schemaLocation != null && getXsdFileName(schemaLocation, "/").
                    equals(getXsdFileName(key, "/"))) {
                                            
                outerSchema.removeChild(nl.item(j));
                for (int i = 0; i < inlineSchema.getChildNodes().getLength(); i++) {
                    outerSchema.appendChild(
                            outerSchema.getOwnerDocument().importNode(
                                inlineSchema.getChildNodes().item(i), true));
                }
                outerSchema.setPrefix("xs");
                outerSchema.setAttribute("xmlns:xs", "http://www.w3.org/2001/XMLSchema");
            }
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



