Altova StyleVision 2023 Basic Edition

ic_insert_hyperlink

 

The Hyperlink command enables you to insert a link from any part of the output document (HTML) to an anchor within the output document or to an external document or document fragment.

 

To insert a hyperlink, do the following:

 

1.A hyperlink can be created around an existing design component or inserted at any point in the document (with the link text inserted subsequently). Select the SPS component or text fragment to be made into a hyperlink or place the cursor at the point where the link is to be inserted.
2.Click the Hyperlink icon in the toolbar, or select Insert | Hyperlink, or right-click and select Insert | Hyperlink (when no design component is selected) or Enclose With | Hyperlink (when a design component is selected).  A hyperlink can also be inserted by using the Insert Hyperlink icon in the Insert Design Elements toolbar.
3.In the Insert Hyperlink dialog that appears, specify the document or document fragment you wish to link to. If you are linking to a document fragment (that is, to a bookmark within a document), remember to include the # symbol. The URI for the hyperlink is specified in one of the following forms:

 

As a static address (entered directly; you can select an HTML file via the Browse button, and a fragment in the current document via the Bookmark button). Examples would be: https://www.altova.com (static Web page URI); U:\documentation\index.html (via Browse button); or #top_of_page (via Bookmark button).

As a dynamic address (which comes from a node in the XML document; you specify the node). An example would be a node such as //otherdocs/doc1. If the name of a bookmark has been generated using the generate-id() function, then the href of the hyperlink should be generated using the same generate-id() function. For information, see Defining Hyperlinks.

As a combination of static and dynamic text for an address (you specify the static text and the XML document node). An example would be www.altova.com -- department/name -- #intropara.

4.Click OK. The hyperlink is created.

 

Note:When specifying the node for a dynamic hyperlink entry, you can enter the XPath expression as an absolute XPath expression by checking the Absolute Path check box. If this check box is not checked, the XPath expression will be relative to the context node, which is the node within which the hyperlink is being inserted.

 

Using unparsed entities

If you are using a DTD as your schema, then in the dynamic part of a hyperlink address, you can use the URI declared for an unparsed entity in the DTD. For details of how to use unparsed entities, see Using unparsed entity URIs.

 

Editing a hyperlink

You can edit the href of a hyperlink after it has been created. Do this by right-clicking the hyperlink and selecting the Edit URL command. Alternatively, in the Properties sidebar, in the Link group of properties for the link, you can click the Edit button of the URL attribute and make the required changes.

 

Deleting a hyperlink

To delete a hyperlink, select it in the design and press the Delete key.

 

© 2017-2023 Altova GmbH