About Arbortext Styler > Cross References and Other Links > Creating Cross References and Cross Reference Formatting > Creating a Basic Internal Document Link
  
Creating a Basic Internal Document Link
1. In Arbortext Editor, open the transport.xml sample document located at Arbortext-path/samples/styler.
2. Choose Styler > New Stylesheet to create a new stylesheet. Click OK in the Stylesheet Properties dialog box that appears, to accept the default settings for the stylesheet.
3. In Arbortext Styler, deselect the View > Only Elements In Document option to list all elements in the stylesheet, rather than just those that have been used in your document.
4. Select the link element (or applicable context) in the Elements list, and assign it the Link style via the Edit > Style menu option, if this has not already been done.
5. In the Link Details dialog box that appears, choose linkend as the Reference attribute.
If the Link style had already been applied to the element when you selected it in the previous step, you will need to use the Edit > Edit Style Details menu option for the element to access the Link Details dialog box.
6. In Arbortext Editor, add a new para within abstract, and add the following sentence: Refer to the following section for more information, adding the link tag around the words following section:
This graphic illustrates the sentence “Refer to the following section for more information”, which is the content of para tags where link is an element inserted by Insert Markup
The Modify Attributes dialog box for the link element opens.
7. Type intro as the value of the linkend attribute, and then click OK to close the dialog box, thus specifying the target ID of the link.
8. Click to the right of the first chapter element in the document, and then choose Edit > Modify Attributes.
9. Type intro as the value of the id field, and then click OK.
10. In Arbortext Styler, select the chapter element in the Elements list, choose Division as its style, and then click OK in the Division Details dialog box to accept 1 as the level of the division.
11. Choose Preview > Print.
In the Print Preview window, note that the second paragraph in the document now contains the following cross reference Refer to the following section for more information.
You can also create different formats for cross references based on the type of output, or on the type of element that is the target of the cross reference. For example, if you have a cross reference element that can refer to two types of element, for example elements with titles and numbered elements that are not titles, you may require the cross reference to include the content of the title in the first case, but leave out the title in the second. The ways in which formatting of this nature can be applied is described in the examples shown below: