<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet title="xslformating" type="text/xsl" href="example9.xsl"?>
<!DOCTYPE html
[
  <!ENTITY mailto "mailto:">
  <!ENTITY username "gabriel">
  <!ENTITY arobase "@">
  <!ENTITY hostname "gabsoftware">
  <!ENTITY tld ".com">
  <!ENTITY http "http://">
  <!ENTITY www "www.">
  <!ENTITY email "&username;&arobase;&hostname;&tld;">
  <!ENTITY website "&http;&www;&hostname;&tld;">
]>
<html xml:lang="en">
  <head>
    <link rel="stylesheet" href="example9.css" type="text/css" media="screen" />
    <title>Extending XHTML - Example 9</title>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />

    <script type="text/javascript">
      //<![CDATA[

      function isGreaterThan(a, b) {
        var a=10;
        var b=20;
        alert( "This javascript was embedded in the xml file : " + (a < b ? "a < b" : "a > b") );
        test(a, b);
      }

      //]]>
    </script>


  </head>
  <body onload="isGreaterThan(10, 20);">
    <div id="header">
      <h1>Extending XHTML - Example 9</h1>
    </div>
    <div id="page">
      <p>
        This version of <a href="http://www.w3.org/TR/xhtml10">XHTML</a> has been extended. For example it can make text <bold id="monid">bold</bold> and display <a href="#faqsection">FAQs</a>.
      </p>
      <p>
        This email is obfuscated : <a href="&mailto;&email;">&email;</a>
      </p>
      <p>
        This link is obfuscated : <hiddenlink destination="&website;" caption="Link title" id="linkemailid" class="linkclass">&website;</hiddenlink>
      </p>
      <p>
        This obfuscated email uses an obfuscated link : <hiddenlink destination="&mailto;&email;" caption="Link title" id="linkid" class="linkclass">&email;</hiddenlink>

    </p>
      <faqlist id="faqsection">
        <faq>
          <question>What does <a href="http://en.wikipedia.org/wiki/FAQ">FAQ</a> mean ?</question>
          <answer>FAQ stands for Frequently Asked Question.</answer>
        </faq>
        <faq>
          <question>What can you find in a FAQ section ?</question>
          <answer>A list of question people often ask and their answer.</answer>
        </faq>
        <faq>
          <question>What makes this FAQ so special ?</question>
          <answer>Just check the source of this page :)</answer>
        </faq>
      </faqlist>
    </div>
  </body>
</html>