Talk:HTML XML Use Case 06

From W3C Wiki

XForms and Related Mixed Syntaxes

This particular use case involves the use of XML wrapped around HTML elements, typically for purposes of building some form of templating, internal documentation or annotation set. XForms is the most immediately obvious example of such a use case, but is not the only one - any "constructive" content that wraps HTML could fall into this category. However, because XForms actually produces a number of sub-cases to this particular discussion, it's a good one for exploring ways that other XML languages may integrate with HTML content.

Scenario 1: Non-Interactive Metadata

In this scenario, you have an XML construct that contains some form of metadata that may be used by the XML language but that is otherwise non-interactive to the underlying HTML. The <xforms:model> provides a good example of this, in that the model construct sits within the HTML <head> element has no formal display, should not be searchable by text search mechanisms, and does not otherwise interact with the HTML. This is analogous to a data island in that respect, save that data islands may or may not actually be interpreted (see the Discussion portion of Use Case 4 for more on this).

This can be seen in the snippet:

<html>
   <head>
       <title>This is the title</title>
       <xf:model xmlns:xf="http://www.w3.org/2002/xforms">
           <xf:instance id="data">
               <tree>
                  <title>Maple
                  <class>Deciduous</class>
                  <height>36m</height>
                  <extent>14m</extent>
               </tree>
           </xf:instance>
       </xf:model>
   </head>
   </body>..</body>
</html>

Listing 1.Non Interactive Block Metadata

where the <xf:model> represents the containing element for the metadata content.