The
purpose of SML-IF tooling plug-in is to view and edit SML-IF documents, and
to validate the content of SML and SML-IF documents.
The
SML-IF tooling plug-in also provides export and import wizards that are integrated
into the Eclipse SDK Platform.
- Export operation creates an SML-IF document from a repository
- Import operation divides an SML-IF document into individual
separate SML model documents and stores them in the repository (which can
be a workspace folder).
The export operation packages and validates a set of documents
representing an SML model to be interchanged into a single XML document in
a standard way. The set of documents to be interchanged is called the SML-IF
document’s interchange set. The documents in the interchange set constitute
the SML models being interchanged.
Note: During
the import operation, there is some loss of data when an SML-IF document is
broken into its respective SML model units. For example, the aliases associated
with a document or schematron rule binding are not preserved in SML model
units. To preserve this information, a meta-data file is generated with every
SML-IF document import.
The SML-IF validator helps
to ensure an SML-IF document:
- Conforms to XML 1.0 (Second Edition)
- Conforms to Schematron rules bound to documents
- Valid under the SML-IF and SML schemas, see SML-IF Specification Appendix
A [Normative] SML-IF Schema
- Each instance conforms to the grammar described by the associated definition
documents
- Validates the schema extension defined by the SML specification
The SML-IF specification defines the format for a single
XML-based document that can be used to exchange SML models between other consumers
of SML models. To view the SML-IF specification, go to the w3C SML Web site: http://www.w3.org/Submission/sml-if/
Figure 1 shows the SML-IF editor open
in the Eclipse SDK Platform.
Figure 1. SML-IF editor
The SML-IF tooling plug-in
includes a multi-page editor that contains three tabs:
- Overview - The overview window displays general information
about the SML-IF document.
- Documents – The documents window displays definitions,
instances, logical representation, alias names and logical tree, and a source
representation of the selected document section.
- Source view – Source view window shows the raw
source of the SML-IF file, color coded with syntax highlighting.