Altova StyleVision 2023 Enterprise Edition

The Enclose with | User-Defined Template command encloses the selection with a template for a node the user specifies in an XPath expression. Insert a user-defined template as follows.

 

1.Select the component in the design that you wish to enclose with a user-defined template.

2.Click the Enclose with | User-Defined Template command. This pops up the Edit XPath Expression dialog.

3.Enter the XPath expression to select the node you want. There are a few points to note in this connection: (i) The XPath expression will be evaluated in the context of the node within which the user-defined template is being created; (ii) The XPath expression can select any node anywhere in the document as well as in another XML document.

4.After you have entered the XPath expression, click OK to finish.

 

A user-defined template for the targeted node will be created around the selection.

 

For more information, see the section, SPS File: Structure | Templates and Design Fragments | User-Defined Templates.

 

© 2017-2023 Altova GmbH