To create a new SPS document, select an option from under the File | New (Ctrl+N) command or click the New Design icon in the Standard toolbar. A new SPS document is created and is displayed in Design View. The new document is given a provisional name of SPSX.sps, where X is an integer corresponding to the position of that SPS document in the sequence of new documents created since the application was started.
After a new SPS document is created, the source files for the SPS must be assigned.
There are three types of source files that can be assigned to an SPS:
These source file assignments are made in the Design Overview sidebar. How to make the assignments is described in the section, Design Overview. The significant points about each type of source file are given below.
A schema source file must be assigned to an SPS so that a structure for the design document can be created. Schema sources are assigned in the Design Overview sidebar. A schema may be an XML Schema file (.xsd file), an XML Schema generated from an XML file, an XML Schema generated from a DB file, a DTD, or a user-defined schema. For each schema, one optional Working XML File and one optional Template XML File can be assigned.
|Note:||If you wish to add a namespace to an SPS or to an XSLT stylesheet being generated from an SPS, the namespace must be added to the top-level schema element of the XML Schema on which the SPS is based.|
An SPS can, optionally, have a Working XML File associated with it. The function of the Working XML File is to provide the XML data source for output previews in StyleVision, and it must therefore be valid according to the schema with which it is associated. The Working XML File is assigned in the Design Overview sidebar.
An SPS can have a Template XML File optionally associated with it. The function of the Template XML File is to provide the starting data of the new XML document that is created each time that SPS is opened in the Authentic View (a graphical XML-document-editor available in the Altova products XMLSpy, Authentic Desktop, Authentic Browser, and StyleVision) of a product other than StyleVision. The Template XML File must be valid according to the schema with which it is associated. It is assigned in the Design Overview sidebar.