Sixml SchemaSixml allows marks to be associated with different XML constructs: element, attribute, text, CDATA section, comment, and processing instruction (PI). A mark is associated with a part of an XML document using a mark association element. One element type is defined for each XML construct with which marks may be associated. The types are: EMark, AMark, TMark, CDataMark, CMark, and PIMark. The figure below shows the hierarchy of Sixml element types as a UML class diagram. All Sixml types are associated with the namespace http://schema.sixml.org. The prefix sixml is commonly associated with this namespace.
Hierarchy of Sixml element types Mark associations: An EMark element associates a mark with the element that contains the EMark element. An AMark element associates a mark with attributes of the element that contains the AMark element. The attribute target of an AMark element lists the names of the attributes of the containing element with which marks are associated. A TMark element associates a mark with text content. It wraps the text with which it associates a mark. A TMarks (plural) element associates many marks with text content. It wraps the text with which it associates marks and the individual TMark elements, each of which represents a mark association. The types CDataMark and CDataMarks associate marks with a CDATA section in a similar manner. The types CMark and CMarks, and PIMark and PIMarks, accomplish the same goal for comments and PIs, respectively. No special element types are used to associated multiple marks with elements and attributes. Instead, multiple EMark and AMark elements are used (one for each mark association). There are no constraints on the name of a mark association element. Mark descriptors: The element type Descriptor describes the BI a mark association element associates with an XML construct. An instance of this type is called a mark descriptor, and is optionally embedded inside a mark association element (as a sub-element). The type Descriptor is abstract. That is, only instances of its derived types are possible, and only derivation by extension is allowed. This type is typically extended once for each linking protocol. An extended type may define any structure. Example applications: Here are some example application schemas defined using the Sixml mark association element types.
|