This element makes a link to a routine referred to within a codecollection element. That element makes a reference to a document which is marked up using the programcode DTD. Example:
The coderef element refers to an ID attached to an element in the programcode document (which will be either a routine or a routinename element).<!DOCTYPE sun PUBLIC "-//Starlink//DTD Starlink SUN 0.7//EN" [ <!ENTITY testprog SYSTEM "test2.sgml" SUBDOC> ]> ... <p>Here is some text. It refers to <coderef collection=cc1 id=tryxxx>the tryxxx function</coderef>. We could also refer to this, in this case, as the function <coderef id=tryxxx/>. <sect id=two export>Routines <routinelist> <codecollection doc="testprog" id=cc1>
Like the ref element, if you do not supply any content for
this element - that is, you give the element as <coderef
collection="cc1" id="tryxxx"/>
- then the target function's
name will be used as the text.
attribution, cite, code, dt, em, entry, foreign, kbd, line, p, px, quote, span, strong, verbatim
( #pcdata
)
coderef |_(#PCDATA)
The ID which you have assigned to a codecollection. If omitted, the coderef element is taken to refer to the first codecollection element in the document, which is useful if there is only one such element in a simple document.
The ID within the programcode document.