Altova StyleVision 2023 Enterprise Edition

SPS and Sources

Home Prev Top Next

Creating a new SPS file

To create a new SPS document, select an option from under the File | New (Ctrl+N) command or click the New Design icon ic_newfromschema 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.

 

Assigning source files for the SPS

There are three types of source files that can be assigned to an SPS:

 

Schema sources

Working XML File

Template XML File

 

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.

 

Schema sources

At least one schema source file must be assigned to an SPS so that a structure for the design document can be created. Optionally, additional schema sources can be assigned. This enables nodes from other documents to be addressed, and thus included, in the SPS. 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, a schema based on an XBRL taxonomy, or a user-defined schema. One of the assigned schema sources is designated the main schema. The main schema is significant because the document node of the Working XML File associated with the main schema is used as the starting point for the main template. 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.

 

Working XML File

Each schema source 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.

 

Template XML File

Each schema source 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.

 

© 2017-2023 Altova GmbH