![]() Chapter Contents |
![]() Previous |
![]() Next |
| The Complete Guide to the SAS Output Delivery System |
| What Are Links and References? |
| Implementing HTML Links and References |
Each link in HTML is implemented with a combination of two sets of <A> (anchor) tags. One anchor tag, which is the starting point of the link, has an HREF attribute that identifies the anchor tag to link to. The other anchor tag, which is the target of the link, has a NAME attribute. This NAME attribute is what the HREF attribute in the first anchor tag points to. The value of each NAME attribute in a file must be unique so that each value of HREF points to a single, unambiguous location. (See Linking within a File.)
| |
|
The important features at the starting point of this link are
When a link points to a target outside the file that is being displayed, the HREF attribute must include the path to that file. The path can be the path within the file system or the uniform resource locator (URL) of the file. Linking to Another File illustrates a link from one file to another file that is specified with a URL.
| |
|
The important features at the starting point (the anchor) of the link are
ODS provides features that enable you to customize the text that precedes the pound sign and the text that follows the pound sign. For information on how to do this, see the discussions of HTML-file-specification, ANCHOR=, BASE=, PATH=, and GPATH= as well as How ODS Constructs Links and References.
| How ODS Constructs Links and References |
| <A href="URL#anchor-name"> |
Note:
HTML
references to files use other tags, but the logic for creating the string
that identifies the file is the same as the logic for creating an HREF attribute
(see Implementing HTML Links and References). ![[cautend]](../common/images/cautend.gif)
If the file that you are linking to is a graphic, ODS uses information from the GPATH= option as the next part of the HREF. (For information on these options, see the discussion of GPATH= and the discussion of PATH=.) Building an HREF Attribute from the GPATH= Option shows how ODS uses information from the GPATH= option in the URL in HREF attributes.
| If the file-specification in GPATH= is ... | And the URL= suboption is*... | ODS uses this information in the second part of the URL in the HREF attribute#... |
|---|---|---|
| an external-file or libref.catalog | not specified | the name of the file |
| an external-file or libref.catalog | specified, but not NONE | the value of the URL= suboption |
| an external-file or libref.catalog | NONE | No information from GPATH= |
| a fileref | specified or not specified | No information from GPATH= |
| *In the CMS operating environment, you must
use the URL=
suboption in the GPATH= option because CMS filenames do not form valid URLs.
#If you do not specify GPATH=, ODS uses the value of PATH= to create this part of the HREF. |
||
If the file that you are linking to is not a graphic, ODS uses information from the PATH= option as the next part of the HREF. Building an HREF Attribute from the PATH= Option shows how ODS uses information from the PATH= option in the URL in HREF attributes.
| If the file-specification in PATH= is ... | And the URL= suboption is*... | ODS uses this information in the second part of the URL in the HREF attribute# |
|---|---|---|
| an external-file or libref.catalog | not specified | the name of the file |
| an external-file or libref.catalog | specified, but not NONE | the value of the URL= suboption |
| an external-file or libref.catalog | NONE | No information from PATH= |
| a fileref | specified or not specified | No information from PATH= |
| *In the CMS operating environment, you must use the
URL=
suboption in the PATH= option because CMS filenames do not form valid URLs.
#If you do not specify PATH=, ODS does not use any values from the PATH= option to create the HREF attribute. |
||
Operating Environment Information: ![[cautend]](../common/images/cautend.gif)
The anchor-name comes from the value of the ANCHOR= option.
Creating the Value of an HREF Attribute illustrates the creation of the HREF:
Creating the Value of an HREF Attribute
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.