Stylesheet Relationships

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  SchemaAgent Client > Viewing Files in the Design Window > Displaying Relations >

Stylesheet Relationships

XSLT stylesheet files can import or include other XSLT files or XML schemas. In addition, one or several inline schemas may be present in an XSLT file. SchemaAgent illustrates these relationships with different colors.

design_relations-XSLT-XSD

The connector lines lead from the title bar of an XML schema or XSLT stylesheet box to the title bar of an XSLT box when the XSLT box is collapsed, or to the imports, includes, or import schemas sections, respectively, within an XSLT box when the XSLT box is expanded. The default color for imports is dark green, for includes it is light green, and for schema relations it is light blue.

 

Changing the order

Since in XSL Transformations it is of importance in which sequence the imported or included stylesheets are applied, these files are not sorted alphabetically in the file boxes, but in the order of their insertion. You can, however, later on change this order using the sorting options in the context menu of the XSLT file box.

design_xslt-box-sortorder

 

To change the order of imported or included XSLT files:

1.Expand the imports or includes section to view the related XSLT files.
2.Right-click the file whose position you want to change and choose one of the following options from the context menu:

 

Move up
Move down

 

3.Optionally, repeat step 2 until the file shows up at the desired position.

 

Inline schemas

Inline schemas are displayed when you expand the inline schemas section in an XSLT box. You can also show a file box for the inline schema. The file box for the inline schema has a dashed border, apart from that, you can proceed as with any other XML schema box.

 

 

To display a schema box for an inline schema:

1.Expand an XSLT box until the inline schemas are listed under the inline schemas section.
2.Right-click an inline schema and deactivate the Show inline option in the context menu or click the ic_show-inline-box icon to the left of the schema name. Alternatively, you can also double-click the inline schema entry in the inline schemas section. The inline schema is displayed in a separate schema box which is connected to the inline schemas section of the XSLT file box.

 

 

To hide a schema box for an inline schema:

Right-click an inline schema that has a schema box displayed in the WSDL box and activate the Show inline option in the context menu. Alternatively, click the ic_show-inline icon to the left of the schema name, or double-click the inline schema entry in the inline schemas section.

© 2019 Altova GmbH