<?xml-stylesheet href="sxlinkdemo.css" type="text/css" ?>
<xldemo xmlns:xlink="http://www.w3.org/1999/xlink">

<title>Simple XLink Demo</title>

<par>This document demonstrates different combinations of values for the <literal>show</literal> and <literal>actuate</literal> attributes in simple XLink links that work in Mozilla. In each case, the underlined number name is the link anchor.</par>

<par><demoLink xlink:type="simple" 
          xlink:show="replace"
          xlink:actuate="onRequest"
          xlink:title="link3dest.xml in this window window"
          xlink:href="http://www.snee.com/bob">Bob DuCharme</demoLink> last edited February 7, 2002</par>

<subtitle>Link 1: onLoad/new</subtitle>

<par>Link
<demoLink xlink:type="simple"
          xlink:show="new"
          xlink:actuate="onLoad"
          xlink:title="link1dest.xml in new window automatically"
          xlink:href="link1dest.xml">one</demoLink>, which should have opened up a new window with link1dest.xml in it when you opened up this page, has the 
following markup:</par>

<listing>
  &lt;demoLink xlink:type="simple"
            xlink:show="new"
            xlink:actuate="onLoad"
            xlink:title="link1dest.xml in new window automatically"
            xlink:href="link1dest.xml">one&lt;/demoLink>
</listing>

<par>It will open up another new window every time you go to xslinkdemo.xml, which can be annoying, but that's what a new/onLoad link is supposed to do.</par>

<subtitle>Link 2: onRequest/new</subtitle>

<par>Link
<demoLink xlink:type="simple"
          xlink:show="new"
          xlink:actuate="onRequest"
          xlink:title="link2dest.xml in new window"
          xlink:href="link2dest.xml">two</demoLink> has the 
following markup:</par>

<listing>
  &lt;demoLink xlink:type="simple"
            xlink:show="new"
            xlink:actuate="onRequest"
            xlink:title="link2dest.xml in new window"
            xlink:href="link2dest.xml">two&lt;/demoLink>
</listing>


<subtitle>Link 3: onRequest/replace</subtitle>

<par>Link
<demoLink xlink:type="simple"
          xlink:show="replace"
          xlink:actuate="onRequest"
          xlink:title="link3dest.xml in this window window"
          xlink:href="link3dest.xml">three</demoLink> has the following markup:</par>

<listing>
&lt;demoLink xlink:type="simple"
          xlink:show="replace"
          xlink:actuate="onRequest"
          xlink:title="link3dest.xml in this window window"
          xlink:href="link3dest.xml">three&lt;/demoLink>
</listing>

<subtitle>Link 4: onLoad/replace</subtitle>

<par>Link
<demoLink xlink:type="simple"
          xlink:show="replace"
          xlink:actuate="onRequest"
          xlink:title="link4demo.xml, which has an onRequest/replace link"
          xlink:href="link4demo.xml">four</demoLink> is actually a onRequest/replace link, but it leads to link4demo.xml, which consists of the following in its entirety:</par>

<listing>
  &lt;?xml-stylesheet href="sxlinkdemo.css" type="text/css" ?>
  &lt;xldemo xmlns:xlink="http://www.w3.org/1999/xlink">

  &lt;title>Link 4 Demo&lt;/title>

  &lt;par>
  &lt;demoLink xlink:type="simple"
            xlink:show="replace"
            xlink:actuate="onLoad"
            xlink:title="link4dest.xml using an onLoad/replace link"
            xlink:href="link4dest.xml">Here&lt;/demoLink> is an onLoad/replace
  link.&lt;/par>

  &lt;/xldemo>
</listing>

<subtitle>Link 5: onLoad/embed</subtitle>

<par>The next paragraph is just the word "five" and is marked up as an onLoad/embed link. As of February 6, 2002, Mozilla doesn't support this.</par>

<par>
<demoLink xlink:type="simple"
          xlink:show="embed"
          xlink:actuate="onLoad"
          xlink:title="link5dest.xml embedded right here"
          xlink:href="link5dest.xml">five</demoLink>
</par>

<par>Here is the markup of that link:</par>

<listing>
&lt;demoLink xlink:type="simple"
          xlink:show="embed"
          xlink:actuate="onLoad"
          xlink:title="link5dest.xml embedded right here"
          xlink:href="link5dest.xml">five&lt;/demoLink>
</listing>

<subtitle>Link 6: onRequest/embed</subtitle>

<par>The next paragraph is just the word "six" and is marked up as an onRequest/embed link. As of February 6, 2002, Mozilla doesn't support this.</par>

<par>
<demoLink xlink:type="simple"
          xlink:show="embed"
          xlink:actuate="onRequest"
          xlink:title="link6dest.xml embedded right here"
          xlink:href="link6dest.xml">six</demoLink>
</par>

<par>Here is the markup of that link:</par>

<listing>
&lt;demoLink xlink:type="simple"
          xlink:show="embed"
          xlink:actuate="onRequest"
          xlink:title="link6dest.xml embedded right here"
          xlink:href="link6dest.xml">six&lt;/demoLink>
</listing>

</xldemo>

