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-
guage (see http://en.wikipedia.org/wiki/XHTML ) with elements from the
recipelanguage.AllelementtagsthatassociatewithXHTMLareprefixedwith h: ,and
all element tags that associate with the recipe language are prefixed with r: .
The h: prefix associates with the http://www.w3.org/1999/xhtml URI
andthe r: prefixassociateswiththe http://www.tutortutor.ca/ URI.XML
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 ) .
Search WWH ::




Custom Search