To use ota-schema-tools to create xnsdoc files from the opentravel schema, follow these simple steps:

  1. Edit the ota-schema-tools/config/[spec]/jaxb/ota.xsd file to only include the schema that you want to document. (Where [spec] is the ota schema version ie., 2007A)

  2. Edit the build.xml file. Change the property xsddoc.home to point to the xsddoc directory (or include xsddoc in your classpath)

  3. Download a schema zip file from opentravel.org and drop it in the ota-schema-zip-files directory, then type:
    > export ANT_OPTS=-Xmx512m
    > ant xsddoc


Your schema will be unzipped, organized, and cleaned up, and run against the xsddoc tool.


Don <don@donandann.com>