Close this window

Using the <name> tag

Description

The name tag is used to insert a label or title for a CNXML object such as a section, para, list item, equation, example, rule, or figure. The text displayed by the name tag can be used by the reader as a search string within a CNXML document.

Example

This CNXML:


<para id="cnxml">
  <name>An Introduction to CNXML</name>
  This paragraph presents a brief introduction 
  to a customized version of XML called CNXML.
</section> 
	

Results in this display:

An Introduction to CNXML

This paragraph presents a brief introduction to a customized version of XML called CNXML.

Example

This CNXML:


<section id="intro">
  <name>An Introduction to CNXML</name>
  .
  .
  .
</section> 
	

Results in this display:

An Introduction to CNXML

. . .

Attributes(what's this?)

Children(what's this?)

The name tag can only contain Unicode text representing an object's name.

Parents(what's this?)

document, section, para, list, item, equation, example, rule, figure, subfigure, table

Close this window