Summary: This document introduces simple CNXML tags that are easy to use in Edit-in-Place.
emphasis tag is used to
accent certain text. Note that this refers to semantic
emphasis and not a typeface. Different stylesheets
can render emphasis with different typefaces.
<para id='intro'> Gardenias are my absolute <emphasis>favorite</emphasis> flower. Their petals are soft, and their bloom has an absolutely <emphasis>heavenly</emphasis> scent. </para>
term tag is used to mark
words or phrases which are being defined. However, its
use is confined to either a para or definition tag. The term tag has one optional
attribute: src - a URL
specifying the source or definition of the
term.<para id='gardenia'> <term src="http://en.wikipedia.org/wiki/Gardenia">Gardenias</term> can be tricky to maintain. The soil around the roots of a <term>gardenia</term> must remain moist always, but too much water can damage the plant. Also, <term>gardenias</term> enjoy the sun, but if the <emphasis>foliage</emphasis> gets wet to bring the gardenia into the shade. </para>
note tag creates an "out
of line" note (which could be a warning,
point of interest, etc.) to the reader. The type of note is specified
by an optional type attribute. If a type is not specified, the default is Note.
<para id='pollen'> Receiving flowers is, on the whole, a wonderful thing. However, sometimes pollen from the flowers can cause problems. In particular, the clean up of a bit of pollen can be tricky. <note type="Important">Do not use water when cleaning up pollen! This can lead to counter-top and clothing stains!</note> Your best bet is to use a dry method of cleaning with a paper-towel. </para>
cnxn and link tags are
used for linking to other documents. The cnxn tag is specifically used for linking to
other documents in the Connexions system, while the link tag is
used for linking to general documents on the internet.
cnxn tag has four
attributes:
target - targets a
specific tag within a documentdocument - targets a
specific document by its ID version - targets a
specific version of a document
strength - designates the
degree to which the linked information is related to
the current document
version attribute is
optional. When not specified the cnxn will default the
link to the most current version of the document. If
you specify a specific version of a document, it will
never change, meaning important parts, such as
paragraphs or figures, will not disappear without
warning. On the other hand, you will not see any updated information in that document if you specify the version.
target and document attributes can be used
together or alone. If both are used then you will link
to a particular place in another document. If only document is used, you will link to
a document as a whole. If only target is used, you will link to a
particular tag within the current document.
strength attribute is
optional and can give the reader an indication of how
related the additional information is to the current
discussion.
<cnxn target='tbonefig' document="m10278"/>
<cnxn target="element-852"/>
![]() Figure 1: Picture taken by Jennifer Drummond (CC Attribution). |
<cnxn target='element-852'>Momosa Picture</cnxn>
link tag, on the other
hand, has only a required src
tag which contains a URL for the target online document.
<para id='moretips'> For more gardening tips, see <link src="http://www.bhg.com/bhg/gardening/index.jhtml">Better Homes and Gardens' Garden Section</link>. </para>
cite tag is used to refer
to non-electronic materials within a document, and primarily
contains the title, the author, and/or a page number of a work.
Finally, a good resource is the <cite>Garden Lover's Cookbook -- William M. Rice; Paperback</cite>.
quote tag is used to
denote that some text directly quotes another
source. The quote tag has a type attribute which denotes
whether the quote is inline
or block.
<para id='steakquote'> Every plant needs a different amount of water in order to grow well. <quote>"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 type='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 tag is used to
denote that a word or phrase foreign to the language of the document is being used.
<para id='steakquote2'> 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 tag is used to insert example computer
output/input as either inline text within a paragraph or as a
block of text. The code tag has a type
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.<para id='copy'> In a unix terminal the command to copy a file is <code type='inline'>cp original copy</code>. </para>
cp original copy
Comments, questions, feedback, criticisms?