The page or section element to generate links for.
A space-separated list of link roles, used to select the appropriate title, default "guide".
This template outputs all the guide links for a page or section, whether declared as guide links in the page or section or as topic links from another guide page. It outputs each of the links as a link element within the Mallard namespace. Each link element has an xref attribute pointing to the target page or section. Or, in the case of external links, the link element has an href attribute pointing to the external resource.
Each link element contains a title with type="sort" providing the sort title of the target page or section. The $role attribute is used to select a link title to sort on when a sort title is not present. The results are not sorted when returned from this template. Use xsl:sort on the sort titles to sort the results.
When a link comes from a guide link on $node that has an href attribute but not an xref attribute, it is taken to be an external link. In that case, the output link has an href attribute instead of an xref attribute, and it has an info child element. This element has a copy of all the child elements of the source link element.
The output is a result tree fragment. To use these results, call exsl:node-set on them.