<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/styles/XMLStylesDoc_xhtml10_en.xsl"?><!DOCTYPE document SYSTEM "/schemas/XMLStyles10.dtd">
<document xmlns="http://XMLStyles.com/namespaces/styles" xmlns:xst="http://XMLStyles.com/namespaces/styles" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:date="http://exslt.org/dates-and-times">
   <noxml>
      <p xmlns="http://www.w3.org/1999/xhtml"/>
      <!-- You are viewing the source.  The following message should be ignored if you did "View Source" in your browser. -->
      <p xmlns="http://www.w3.org/1999/xhtml">
ATTENTION: XML WEB PAGES NOT SUPPORTED
   If you see this message, your current browser does not support the
   1999 XSLT 1.0 (or later) standard for XML web pages such as this one.
   Please upgrade your browser to a newer version
   that supports 1999 or later standards such as:
      Mozilla Firefox version 1.0.2 or later (GetFirefox -&gt; http://www.GetFirefox.com/)
      Netscape version 8 or later
      Safari version 1.3 or later
      Opera version 9 or later
      Microsoft Internet Explorer (MSIE) version 5 or later
   For further assistance, contact the software vendor for your browser.
   To go to the X<!-- extended HTML -->HTML version of this page click the following link:
<a href="index.html">index.html</a>
      </p>
      <p xmlns="http://www.w3.org/1999/xhtml">&#160;</p>
   </noxml>
   <path>/tutorials/</path>
   <site>HTML 5 Reference</site>
   <logo xlink:type="simple" xlink:href="/images/html-5.jpg" media="screen" width="156" height="27">HTML 5 Reference</logo>
   <logo xlink:type="simple" xlink:href="/images/html-5.jpg" media="print" width="156" height="27">HTML 5 Reference</logo>
   <logo xlink:type="simple" xlink:href="/images/html-5.jpg" media="handheld" width="150" height="17">HTML 5 Reference</logo>
   <navigation where="sections">
      <label>HTML 5 Reference</label>
      <link xlink:type="simple" xlink:href="/index.xml">Home</link>
      <link xlink:type="simple" xlink:href="/tutorial/index.xml">Tutorial</link>
      <link xlink:type="simple" xlink:href="/tags/index.xml">HTML5 Tags</link>
      <link xlink:type="simple" xlink:href="/attributes/index.xml">Attributes</link>
      <link xlink:type="simple" xlink:href="/css-styles/index.xml">CSS Styles</link>
      <link xlink:type="simple" xlink:href="/metatags/index.xml">Metatags</link>
      <link xlink:type="simple" xlink:href="/cheat-sheet/index.xml">Cheat Sheet</link>
      <link xlink:type="simple" xlink:href="/examples/index.xml">Examples</link>
      <link xlink:type="simple" xlink:href="/definitions/index.xml">Definitions</link>
      <link xlink:type="simple" xlink:href="/diffs/index.xml">Differences</link>
      <link xlink:type="simple" xlink:href="/avoid/index.xml">Avoid</link>
      <link xlink:type="simple" xlink:href="/faqs/index.xml">HTML5 FAQs</link>
      <link xlink:type="simple" xlink:href="/prod/rssfeeds.cgi">RSS Feeds</link>
      <link xlink:type="simple" xlink:href="/prod/help/index.cgi">Help</link>
   </navigation>
   <navigation where="left">
      <label>HTML 5 Reference</label>
      <link xlink:type="simple" xlink:href="/tutorial/index.xml">HTML Tutorial</link>
      <link xlink:type="simple" xlink:href="/tags/index.xml">HTML 5 Tags</link>
      <link xlink:type="simple" xlink:href="/attributes/index.xml">HTML Attributes</link>
      <link xlink:type="simple" xlink:href="/css-styles/index.xml">CSS Styles</link>
      <link xlink:type="simple" xlink:href="/metatags/index.xml">HTML Metatags</link>
      <link xlink:type="simple" xlink:href="/cheat-sheet/index.xml">Cheat Sheet</link>
      <link xlink:type="simple" xlink:href="/examples/index.xml">HTML Examples</link>
      <link xlink:type="simple" xlink:href="/definitions/index.xml">Definitions</link>
      <link xlink:type="simple" xlink:href="/diffs/index.xml">HTML 5 Changes</link>
      <link xlink:type="simple" xlink:href="/avoid/index.xml">Things to Avoid</link>
      <link xlink:type="simple" xlink:href="/faqs/index.xml">HTML 5 FAQs</link>
      <link xlink:type="simple" xlink:href="/prod/help/index.cgi">Help</link>
      <link xlink:type="simple" xlink:href="/prod/help/index.cgi?p=about">About</link>
   </navigation>
   <section id="body" type="body">
      <pages name="index">
         <navigation where="pages">
            <label>index</label>
            <link xlink:type="simple" xlink:href="index.xml">index</link>
            <link xlink:type="simple" xlink:href="page-structure.xml">Tutorial</link>
            <link xlink:type="simple" xlink:href="style-sheets.xml">Style Sheets</link>
            <link xlink:type="simple" xlink:href="html-templates.xml">XSLT Style Sheets</link>
            <link xlink:type="simple" xlink:href="css-stylesheets.xml">CSS StyleSheets</link>
            <link xlink:type="simple" xlink:href="namespaces.xml">Namespaces</link>
            <link xlink:type="simple" xlink:href="sections.xml">Sections</link>
            <link xlink:type="simple" xlink:href="style-tags.xml">Style Tags</link>
            <link xlink:type="simple" xlink:href="lists.xml">Lists</link>
            <link xlink:type="simple" xlink:href="groups.xml">Groups</link>
            <link xlink:type="simple" xlink:href="acronyms.xml">Acronyms</link>
            <link xlink:type="simple" xlink:href="times.xml">Dates/Times</link>
            <link xlink:type="simple" xlink:href="tables.xml">Tables</link>
            <link xlink:type="simple" xlink:href="forms.xml">Forms</link>
            <link xlink:type="simple" xlink:href="gauges.xml">Gauges</link>
         </navigation>
         <page id="xslt-stylesheets" name="html-templates">
            <label>XSLT Style Sheets</label>
            <title>XSLT Style Sheets</title>
            <h2>XSLT Style Sheets (<acronym term="Also Known As">AKA</acronym> Templates) in HTML</h2>
            <p>An XSLT style sheet provides a template that can be reused for multiple pages of a site.
               Using XSLT style sheets for the common elements (the "look and feel") of a web site
               can improve web page load times, since the templates can be cached by most browsers.
            </p>
            <p>An XSLT style sheet can be applied to a web page by including a
               <link xlink:type="simple" xlink:href="../tags/link-tag/">link tag</link> with a
               <acronym term="">MIME</acronym> type specification of <code>"application/xslt+xml"</code>.
               For backward compatibility with older browsers, it's probably a
               good idea to include a reference to the primary style sheet in a
               <link xlink:type="simple" xlink:href="../tags/xml-stylesheet-instruction/">stylesheet processing instruction</link>
               with the <acronym term="">MIME</acronym> type <code>text/xsl</code>.
            </p>
            <p>Here is an example of an HTML page using both an XSLT style sheet and CSS:
            </p>
            <blockcode>
               <l>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</l>
               <l>&lt;?xml-stylesheet type="text/xsl" href="/site-template.xsl"?&gt;</l>
               <l>&lt;!DOCTYPE html&gt;</l>
               <l>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;</l>
               <l>  &lt;head&gt;</l>
               <l>    &lt;link rel="stylesheet" type="application/xslt+xml" href="/styles/print.xsl" media="print"/&gt;</l>
               <l>    &lt;link rel="stylesheet" type="application/xslt+xml" href="/styles/handheld.xsl" media="handheld"/&gt;</l>
               <l>    &lt;link rel="stylesheet" type="application/xslt+xml" href="/styles/screen.xsl" media="screen"/&gt;</l>
               <l>    &lt;link rel="stylesheet" type="text/css" media="print" href="/styles/print.css"/&gt;</l>
               <l>    &lt;link rel="stylesheet" type="text/css" media="handheld" href="/styles/handheld.css"/&gt;</l>
               <l>    &lt;link rel="stylesheet" type="text/css" media="screen" href="/styles/screen.css"/&gt;</l>
               <l>    &lt;title&gt;Example Only&lt;/title&gt;</l>
               <l>  &lt;/head&gt;</l>
               <l>  &lt;body&gt;</l>
               <l>    &lt;h1&gt;Sample HTML 5 Web Page with Style Sheets&lt;/h1&gt;</l>
               <l>    &lt;p&gt;This is the content of the page. The appropriate CSS styles will be applied&lt;/p&gt;</l>
               <l>       The styles from the appropriate .css file will be applied to various elements on the page and</l>
               <l>       the "look and feel" in the templates in the appropriate .xsl file will be wrapped around it.</l>
               <l>    &lt;/p&gt;</l>
               <l>  &lt;/body&gt;</l>
               <l>&lt;/html&gt;</l>
            </blockcode>
            <p>The style sheets are ordered from lowest priority to highest (print, handheld, screen)
               just in case the browser ignores the <code>media</code> attribute of the link tag.
            </p>
            <updated local="2010-09-19">Sunday September 19, 2010</updated>
         </page>
      </pages>
   </section>
   <copyright>Copyright © 2010 Accilent<span class="sup">®</span> Corp. Alteration of content, including addition of any function such as hypertext links or pop-up advertising, or interference with the hypertext links or other functions of this site is expressly prohibited.</copyright>
   <disclaimer>All information, links, forms, applications and other items on this site or obtained from it are provided <b>AS IS</b>, WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</disclaimer>
</document>

