<< Chapter < Page Chapter >> Page >

The link tag is the tag in CNXML used for linking to other Connexions modules or collections as well as external links.

  • The Strength attribute can contain the value 1, 2, or 3 specifying the relevance of the link.
  • The Window attribute determines the manner in which the link location will be opened. It can contain the values "Replace" or "New". "Replace" will result in the link location opening in the current window replacing the page with the link. "New" will result in the link location opening in a new browser window.
  • The URL attribute can contain the web address of the link you wish to reference.
  • The Document attribute is used to reference the ids of other Connexions modules or Collections.
  • The Target-id attribute is used to reference the ids of specific elements within Connexions modules.
  • The Version attribute is used to reference a specific version of a Connexions module or collection.

The target and document attributes can be used together or alone. If both are used then you will linkto a particular tag in another document. If only document is used, you will link to another document. If only target is used, you will link to a particular tag within the current document.

Cite

The cite tag is used to refer to non-electronic materials within a document, and primarilycontains the title, the author, and/or a page number of a work.

Cite example

Finally, a good resource is the<cite>Garden Lover's Cookbook -- William M. Rice; Paperback</cite>.

The above markup will display as:

Finally, a good resource is the Garden Lover's Cookbook -- William M. Rice; Paperback .

Quote

The quote tag is used to denote that some text directly quotes anothersource. The quote tag has a display attribute which denotes whether the quote is inline or block .

Quote example

<para id='plantquote'>Every plant needs a different amount of water in order to grow well.<quote display="inline">"If you water each plant the same, you will always water too much and too little."</quote>Also, remember the words of Lou Erickson:<quote id="quote_example" display='block'>"Gardening requires lots of water - most of it in the form of perspiration."</quote></para> Every plant needs a different amount of water in order to grow well.

"If you water each plant the same, you will always water too much and too little."
Also, remember the words of Lou Erickson:
"Gardening requires lots of water - most of it in the form of perspiration."

Foreign

The foreign tag is used to denote that a word or phrase foreign to the language of the document is being used.

Foreign example

<para id='plantquote2'>All flowers have a scientific name, often derived from Latin.<foreign>Gardenia augusta</foreign>is the name of a type of gardenia found in Japan.</para> All flowers have a scientific name, often derived from latin. Gardenia augusta is the name of a type of gardenia found in Japan.

Code

The code tag is used to insert example computer output/input as either inline text within a paragraph or as ablock of text. The code tag has a display attribute with two possible values:

  • inline (default) - used to specify code that is inline.
  • block - used to specify code that should be in a separate block of text.

Inline code example

For now, take a look at what the inline code looks like:

<para id='copy'>In a unix terminal the command to copy a file is<code display='inline'>cp original copy</code>.</para>

In a unix terminal the command to copy a file is cp original copy

You will see more about code blocks in Advanced CNXML using Edit-In-Place .

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, 2008-'09 open education cup: high performance computing. OpenStax CNX. Oct 28, 2008 Download for free at http://cnx.org/content/col10594/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the '2008-'09 open education cup: high performance computing' conversation and receive update notifications?

Ask