<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
 <!-- page name="xml-attributes"-->
 <template>
  <do optional="false" label="Back Up" type="accept">
   <go enctype="application/x-www-form-urlencoded" method="get" sendreferer="true" href="#xml-attributes"/>
  </do>
 </template>
 <card ordered="true" newcontext="false" id="xml-attributes">
  <do optional="false" label="Back Up" type="accept">
   <noop/>
  </do>
  <do optional="false" label="Back" type="prev">
   <prev/>
  </do>
  <do optional="false" type="options" label="Next">
   <go enctype="application/x-www-form-urlencoded" method="get" sendreferer="true" href="#xml-base-attribute"/>
  </do>
  <a href="#xml-base-attribute" accesskey="1">xml:base</a>
  <br/>
  <a href="#xml-id-attribute" accesskey="2">xml:id</a>
  <br/>
  <a href="#xml-lang-attribute" accesskey="3">xml:lang</a>
  <br/>
  <a href="#xml-space-attribute" accesskey="4">xml:space</a>
  <br/>
  <a href="#xmlns-attributes" accesskey="5">xmlns</a>
  <br/>
 </card>
 <card ordered="true" newcontext="false" id="xml-base-attribute">
  <do optional="false" type="options" label="Next">
   <go enctype="application/x-www-form-urlencoded" method="get" sendreferer="true" href="#xml-id-attribute"/>
  </do>
  <!-- h3 -->
  <h3>The xml:base HTML attribute</h3>
  <p>The xml:base attribute </p>
  <!-- h4 -->
  <h4>Examples</h4>
  <p align="left">&lt;span =""&gt;...&lt;/span&gt;</p>
  <p align="left">
   <a href="#xml-id-attribute">Next: xml:id</a>
   <br/>
   <a href="#xml-attributes">Back Up: Menu</a>
   <br/>
  </p>
 </card>
 <card ordered="true" newcontext="false" id="xml-id-attribute">
  <do optional="false" type="options" label="Next">
   <go enctype="application/x-www-form-urlencoded" method="get" sendreferer="true" href="#xml-lang-attribute"/>
  </do>
  <!-- h3 -->
  <h3>The xml:id HTML attribute</h3>
  <p>The HTML id attribute serves the same purpose as the xml:id attribute and should be used instead. </p>
  <!-- h4 -->
  <h4>Examples</h4>
  <p align="left">&lt;span id="elementId-1"&gt;...&lt;/span&gt;</p>
  <p align="left">
   <a href="#xml-lang-attribute">Next: xml:lang</a>
   <br/>
   <a href="#xml-base-attribute">Prev: xml:base</a>
   <br/>
   <a href="#xml-attributes">Back Up: Menu</a>
   <br/>
  </p>
 </card>
 <card ordered="true" newcontext="false" id="xml-lang-attribute">
  <do optional="false" type="options" label="Next">
   <go enctype="application/x-www-form-urlencoded" method="get" sendreferer="true" href="#xml-space-attribute"/>
  </do>
  <!-- h3 -->
  <h3>The xml:lang HTML attribute</h3>
  <p>The HTML lang attribute serves the same purpose as the xml:lang attribute and should be used instead. However, the prefixed xml:lang attribute is sometimes used on the <a href="../tags/html-tag/">html element</a>. </p>
  <!-- h4 -->
  <h4>Examples</h4>
  <p align="left">&lt;dt lang="fr-CA"&gt;de rigeur&lt;/dt&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"&gt;</p>
  <p align="left">
   <a href="#xml-space-attribute">Next: xml:space</a>
   <br/>
   <a href="#xml-id-attribute">Prev: xml:id</a>
   <br/>
   <a href="#xml-attributes">Back Up: Menu</a>
   <br/>
  </p>
 </card>
 <card ordered="true" newcontext="false" id="xml-space-attribute">
  <do optional="false" type="options" label="Next">
   <go enctype="application/x-www-form-urlencoded" method="get" sendreferer="true" href="#xmlns-attributes"/>
  </do>
  <!-- h3 -->
  <h3>The xml:space HTML attribute</h3>
  <p>The xml:space attribute determines whether any white space in the content of the element or its descendants is to be preserved. </p>
  <!-- h4 -->
  <h4>Examples</h4>
  <p align="left">&lt;span =""&gt;...&lt;/span&gt;</p>
  <p align="left">
   <a href="#xmlns-attributes">Next: xmlns</a>
   <br/>
   <a href="#xml-lang-attribute">Prev: xml:lang</a>
   <br/>
   <a href="#xml-attributes">Back Up: Menu</a>
   <br/>
  </p>
 </card>
 <card ordered="true" newcontext="false" id="xmlns-attributes">
  <!-- h3 -->
  <h3>The xmlns HTML attribute</h3>
  <p>The xmlns attribute sets the default namespace URI for the current element and any of its descendants. </p>
  <p align="left">&lt;special xmlns="http://ExampleOnly.com/namespace/"&gt; &lt;p xmlns="http://www.w3.org/1999/xhtml"&gt;This paragraph is truly HTML, but its parent is "special". &lt;/p&gt;&lt;/special&gt;</p>
  <p>Although it may be coded at any level, it typically appears only on the top-level <a href="../tags/html-tag/">html element</a>. The value of the xmlns attribute for HTML tags is http://www.w3.org/1999/xhtml the same as for the 2000 W3C standard HTML. </p>
  <p align="left">&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;!DOCTYPE html&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; ...&lt;/html&gt;</p>
  <p>Using xmlns as a prefix associates a namespace URI with the user-specified namespace prefix following the xmlns: part of the attribute name. </p>
  <p align="left">&lt;special xmlns="http://ExampleOnly.com/namespace/" xmlns:html="http://www.w3.org/1999/xhtml"&gt; &lt;html:p&gt;This paragraph is truly HTML, but its parent is "special". &lt;/html:p&gt;&lt;/special&gt;</p>
  <p>You typically would only see something like this when HTML is aggregated with non-HTML content with element names from a different namespace. </p>
  <p align="left">
   <a href="#xml-space-attribute">Prev: xml:space</a>
   <br/>
   <a href="#xml-attributes">Back Up: Menu</a>
   <br/>
  </p>
 </card>
</wml>

