code: private String generateXmlSchema(Reader cobolReader,
              String targetNamespace, String targetXmlSchemaName,
              final String xsltFileName) {
  
          log.debug("XML schema {} generation started", targetXmlSchemaName
                  + XSD_FILE_EXTENSION);
          String xmlSchemaSource = cob2xsd.translate(cobolReader,
                  NamespaceUtils.toNamespace(targetNamespace), xsltFileName);
          if (log.isDebugEnabled()) {
              log.debug("Generated Cobol-annotated XML Schema: ");
              log.debug(xmlSchemaSource);
          }
          log.debug("XML schema {} generation ended", targetXmlSchemaName
                  + XSD_FILE_EXTENSION);
          return xmlSchemaSource;
  
      }
docs: Translate the COBOL copybook to XML Schema.
  
  @param cobolReader the input COBOL copybook (as a reader)
  @param targetNamespace the target XML schema namespace
  @param targetXmlSchemaName the target XML schema name
  @param xsltFileName an optional XSLT to apply on the XML schema
  @return the XML schema source