.. comment all inline tags to start with _how_scpt_xsd_ .. index:: Scripts; How to - XSD .. _how_scpt_xsd_top: ########################################################## STEPlib SysML: How To use the XSD Scripts ########################################################## .. include:: /pages/common/pageunderconstruction.txt :start-line: 3 This page explains how to use the Scripts of the STEP architecture to generate the XSD. .. contents:: Contents: :local: :depth: 1 :backlinks: top ============= Installation ============= .. todo:: text for this section ============= Execution ============= .. warning:: work in progress .. contents:: Contents: :local: :depth: 1 :backlinks: top The steps for generating the AP243 set of documents are as follows: ------------------------------------ Generate the Domain Model XSD ------------------------------------ Generate the AP DomainModel.xsd from the Domain_model.xml as follows: * (in Windows) open a cmd window from the scriptssteplib/AntImp/ folder and run the following:: java -jar saxon9.jar -t ../Domain_model.xml DomainModel_xmi_to_xsd.xsl > unsorted_DomainModel.xsd java -jar saxon9.jar -t unsorted_DomainModel.xsd DomainModel_sort_xsd.xsl > DomainModel.xsd The resultant file is: scriptssteplib/AntImp/DomainModel.xsd ----------------------------------------------- Generate the Domain Model JSON schema (OpenAPI) ----------------------------------------------- Generate the AP DomainModel.json from the Domain_model.xml as follows: * (in Windows) open a cmd window from the scriptssteplib/AntImp/ folder and run the following:: java -jar ../saxon9.jar -t ../Domain_model.xml DomainModel_xmi_to_json.xsl type DomainModel_NotPretty243.json | python -m json.tool > DomainModel.json The resultant file is: scriptssteplib/AntImp/DomainModel.json .. sectionauthor:: |Judith Crockford| .. include:: /keywords.rst