Differences

This shows you the differences between two versions of the page.

Link to this comparison view

context [2014/09/16 14:26] (current)
Line 1: Line 1:
 +===== The <context> Element =====
 +==== Definition and Usage ====
 +
 +The [[context|<context>]] element allows for structuring an NCL application. The
 +element may contain elements with media content ([[media|<media>]] elements),
 +called media objects, other nested [[context|<context>]] elements, elements
 +grouping content alternatives ([[switch|<switch>]] elements), and relationships
 +([[link|<link>]] elements) among all the objects represented by the
 +aforementioned elements.
 +
 +It should be stressed that the [[body|<body>]] element is considered a special
 +kind of context, the one representing the whole application.
 +
 +The [[context|<context>]] element may refer to another [[context|<context>]] or an
 +imported [[body|<body>]] element. In this case, it inherits the specification of
 +the referred element.
 +
 +==== Syntax ====
 +^ Element ^ Attributes ^ Content ^ Parent ^
 +| [[context|<context>]] | __//id//__, //refer// | ([[port|<port>]] <nowiki>|</nowiki> [[property|<property>]] <nowiki>|</nowiki> [[media|<media>]] <nowiki>|</nowiki> [[context|<context>]] <nowiki>|</nowiki> [[link|<link>]] <nowiki>|</nowiki> [[switch|<switch>]] <nowiki>|</nowiki> [[meta|<meta>]] <nowiki>|</nowiki> [[metadata|<metadata>]])* | [[body|<body>]] or [[context|<context>]] or [[switch|<switch>]] |
 +==== Attributes ====
 +
 +^ Name ^ Value ^ Description ^
 +| //id// | It may receive any string value that begins with a letter or an underscore and that only contains letters, digits, <".">, and <"_">. | The //id// attribute uniquely identifies the element within a document. |
 +| //refer// | IDREF or the string "alias#id" where "id" is an IDREF value. | <html><p></html>The //refer// attribute refers to an element //id// that will be reused.  An element that refers to another element cannot be reused; that is, its //id// value cannot be the value of any //refer// attribute.  The referred element must be a [[context|<context>]] or an imported [[body|<body>]] element.<html></p></html><html><p></html>The referred element and the element that refers to it must be considered the same regarding their data specification.<html></p></html> <html><p></html>If the referred node ([[context|<context>]] or [[body|<body>]] element) is defined within an imported document D, the //refer// attribute value must have the format "alias#id", where "alias" is the value of the //alias// attribute associated with the imported D document.<html></p></html> |
 +
 +
 +
  
Back to top