Java Reference
In-Depth Information
one pat of margarine on one side of bread slice.
Place cheese slice between
bread slices with margarine-smeared sides away
from the cheese. Place sandwich
in frying pan with one margarine-smeared side in
contact with pan. Fry for a
couple of minutes and flip. Fry other side for a
minute and serve.
</r:instructions>
</h:p>
</r:recipe>
</h:body>
</h:html>
Listing 10-5
describes a document that combines elements from the XHTML lan-
recipelanguage.AllelementtagsthatassociatewithXHTMLareprefixedwith
h:
,and
all element tags that associate with the recipe language are prefixed with
r:
.
doesn'tmandatethatURIspointtodocumentfiles.Itonlyrequiresthattheybeunique
in order to guarantee unique namespaces.
This document's separation of the recipe data from the XHTML elements makes it
possibletopreservethisdata'sstructurewhilealsoallowinganXHTML-compliantweb
browser (e.g., Google Chrome) to present the recipe via a web page (see
Figure 10-2
)
.