<?xml version="1.0"?>

<?xml-stylesheet href="skin/html.css" type="text/css"?>
<?xml-stylesheet href="skin/xlink.css" type="text/css"?>

<!DOCTYPE doc [
<!ENTITY lt "&#60;">
<!ENTITY gt "&#62;"> 
]>

<doc xmlns:xlink="http://www.w3.org/1999/xlink"
     xmlns:html="http://www.w3.org/TR/REC-html40">
<table class="head">
  <td><html:img src="skin/dz.gif" width="70" height="26"></html:img></td>
  <td align="right">XLink Demo - Simple Links</td>
</table>

<table>
  <tr>
    <td class="doc title">
      <h2>Camera ABC</h2>
      <html:img src="skin/camera.jpg" id="photo"></html:img>
      <text class="figure-text">Photo: Camera Model ABC</text></td>
      <td></td>
    <td class="xlink title">
      <h2>Example of simple XLinks</h2>
      <h4>The XLink code behind the links from the left side (colored in <fake-link2>blue</fake-link2>) is detailed in the right side.</h4>
      <h4>The root element must have declared the xlink namespace:</h4>
      <text class="feature-text">&lt;DOC xmlns:xlink="http://www.w3.org/1999/xlink"&gt;</text>
      <text class="feature-text">.....</text>
      <text class="feature-text">&lt;/DOC&gt;</text>
    </td>
  </tr>
  <tr class="odd">
    <td class="doc text">
      <text class="feature-title">Resolution</text>
      <text class="feature-text">2,240 x 1,680 pixels (<link xlink:type="simple" xlink:href="specs.xml#interpolated" xlink:title="What is this interpolated all about?">interpolated</link>)</text>
      <text class="feature-text">1,856 x 1,392 pixels</text>
      <text class="feature-text">1,856 x 1,232 pixels</text>
      <text class="feature-text">1,280 x 960 pixels</text>
      <text class="feature-text">640 x 480pixels</text>
    </td>
    <td></td>
    <td class="xlink code">
      <text class="code-info">Opens in the same window</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="specs.xml#interpolated" xlink:title="What is this interpolated all about?"&gt;<fake-link>interpolated</fake-link>&lt;/link&gt;</text>
    </td>
  </tr>
  <tr>
    <td class="doc text">
      <text class="feature-title">Colour depth</text>
      <text class="feature-text">24 Bit (16.7 million colours)</text>
    </td>
    <td></td>
    <td class="xlink code">
    </td>
  </tr>
  <tr class="odd">
    <td class="doc text">
      <text class="feature-title">Image sensor</text>
      <text class="feature-text">1/1.8" <link xlink:type="simple" xlink:href="specs.xml#ccd" xlink:actuate="onRequest" xlink:show="new" xlink:title="Find out what CCD means">CCD</link> chip with 3,340,000 pixels</text>
    </td>
    <td></td>
    <td class="xlink code">
      <text class="code-info">Opens in a new window</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="specs.xml#ccd" xlink:actuate="onRequest" xlink:show="new" xlink:title="Find out what CCD means"&gt;<fake-link>CCD</fake-link>&lt;/link&gt;</text>
    </td>
  </tr>
  <tr>
    <td class="doc text">
      <text class="feature-title">Image format</text>
      <text class="feature-text">JPEG (.jpg), TIFF (.tif) or <link xlink:type="simple" xlink:href="specs.xml#mpeg" xlink:actuate="onRequest" xlink:show="replace" xlink:title="About MPEG compression">MPEG</link> video (.mpg)</text>
    </td>
    <td></td>
    <td class="xlink code">
      <text class="code-info">Opens in the same window. Same situation like 'interpolated'. actuate="onRequest" and show="replace" are set by default there.</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="specs.xml#mpeg" xlink:actuate="onRequest" xlink:show="replace" xlink:title="About MPEG compression"&gt;<fake-link>MPEG</fake-link>&lt;/link&gt;</text>
    </td>
  </tr>
  <tr class="odd">
    <td class="doc text">
      <text class="feature-title">Storage in <link xlink:type="simple" xlink:href="specs.xml#dcf" xlink:actuate="onRequest" xlink:show="embed" xlink:title="More details on DCF">DCF</link> standard</text>
      <text class="feature-text">yes</text>
    </td>
    <td></td>
    <td class="xlink code">
      <text class="code-info">show="embed" replaces this xlink link node with the target node. NOTE: not supported at the moment! See message logger after clicking on the link!</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="specs.xml#dcf" xlink:actuate="onRequest" xlink:show="embed" xlink:title="More details on DCF"&gt;<fake-link>DCF</fake-link>&lt;/link&gt;</text>
    </td>
  </tr>
  <tr>
    <td class="doc text">
      <text class="feature-title"><link xlink:type="simple" xlink:href="dpof.xml" xlink:title="About DPOF-support">DPOF-support</link></text>
      <text class="feature-text">yes</text>
    </td>
    <td></td>
    <td class="xlink code">
      <text class="code-info">This link opens the dpof.xml document which will popup a new window with a document representing a recomandation/solution for this specific problem. The owner of dpof.xml page wants that all its visitors to see this recomandation/solution in a new popup window.</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="dpof-solution.xml" xlink:actuate="onLoad" xlink:show="new" xlink:title="A DPOF-support solution"&gt;DPOF-support solution&lt;/link&gt;</text>
    </td>
  </tr>
  <tr class="odd">
    <td class="doc text">
      <text class="feature-title">Internal <link xlink:type="simple" xlink:href="flashmem-2002-Spec.xml" xlink:title="Flash memory documentation">flash memory</link></text>
      <text class="feature-text">no</text>
    </td>
    <td></td>
    <td class="xlink code">
      <text class="code-info">The owner of this specification file, to which we'll go by clicking on this <fake-link>flash memory</fake-link>, wrote a new specification. He doesn't want to delete the old one. He only wants to show the new specification, so it does a redirection to it with a simple onload xlink that will be found in the flashmem-2002-Spec.xml file, looking like this:</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="flashmem-2003-Spec.xml" xlink:actuate="onLoad" xlink:show="replace" xlink:title="Flash memory documentation for 2003"&gt;flash memory 2003 spec&lt;/link&gt;</text>
    </td>
  </tr>
  <tr>
    <td class="doc text">
      <text class="feature-title">Removable memory</text>
      <text class="feature-text">Memory Stick. 8 Mbyte removable memory media included. Inserted in the left side of the <link xlink:type="simple" xlink:href="#photo" xlink:title="See Camera ABC from top">camera</link></text>
    </td>
    <td></td>
    <td class="xlink code">
      <text class="code-info">Scrolls to id="photo"</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="#photo" xlink:title="See Camera ABC from top"&gt;<fake-link>camera</fake-link>&lt;/link&gt;</text>
    </td>
  </tr>
  <tr class="odd">
    <td class="doc text">
      <text class="feature-title">Number of pictures per battery filling</text>
      <text class="feature-text">up to 2000 images or up to 2 hours <link xlink:type="simple" xlink:href="op-time.xml" xlink:title="What does this mean?">operating time</link></text>
    </td>
    <td></td>
    <td class="xlink code">
      <text class="code-info">The target of <fake-link>operating time</fake-link> will ask us first for the type of battery. There will be three choises given by three onload simple XLinks and we have to decide for which one of them we want to see the operating time. These will be in op-time.xml:</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="#default" xlink:actuate="onLoad"&gt;Default battery&lt;/link&gt;</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="op-time-batteryII.xml" xlink:actuate="onLoad"&gt;Battery type II&lt;/link&gt;</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="op-time-batteryIII.xml" xlink:actuate="onLoad"&gt;Battery type III&lt;/link&gt;</text>
    </td>
  </tr>
  <tr>
    <td class="doc text">
      <text class="feature-title"><link xlink:type="simple" xlink:href="img-del.xml" xlink:title="About image deletion">Image deletion</link> at the camera</text>
      <text class="feature-text">single pictures / all pictures</text>
    </td>
    <td></td>
    <td class="xlink code">
      <text class="code-info">Similar to the situation above with <fake-link>operating time</fake-link>. The difference is that on load of <fake-link>Image deletion</fake-link> one link will be oppened in a new window. The user will have to choose between two links to be redirected to. The target <fake-link>Image deletion</fake-link> will contain:</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="img-del-typeI.xml" xlink:actuate="onLoad"&gt;Image deletion type I&lt;/link&gt;</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="img-del-typeII.xml" xlink:actuate="onLoad"&gt;Image deletion type II&lt;/link&gt;</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="img-del-advice" xlink:actuate="onLoad" xlink:show="new"&gt;Image deletion advice&lt;/link&gt;</text>
    </td>
  </tr>
  <tr class="odd">
    <td class="doc text">
      <text class="feature-title">Power supply</text>
      <text class="feature-text">1 x <link xlink:type="simple" xlink:href="li-ion-default.xml" xlink:title="Specification for Li-Ion battery">Li-Ion-rechargeable</link> battery</text>
      <text class="feature-text">AC adaptor</text>
    </td>
    <td></td>
    <td class="xlink code">
      <text class="code-info">The owner of the target (click on <fake-link>Li-Ion-rechargeable</fake-link> to get to the target) decided to redirect the users from li-ion-default.xml to a newer type of battery. Also there will be poped up another two documents of two other devices using this type of battery. These links will be in the target document:</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="li-ion-newmodel.xml" xlink:actuate="onLoad" xlink:show="replace"&gt;Li-Ion New Model Battery&lt;/link&gt;</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="deviceA.xml" xlink:actuate="onLoad" xlink:show="new"&gt;Device A&lt;/link&gt;</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="deviceB.xml" xlink:actuate="onLoad" xlink:show="new"&gt;Device B&lt;/link&gt;</text>
    </td>
  </tr>
  <tr>
    <td class="doc text">
      <text class="feature-title">Connection to computer</text>
      <text class="feature-text"><link xlink:type="simple" xlink:href="specs.xml#xpointer(/doc/chapter[4]/section/p[2])" xlink:title="See the USB paragraph">USB interface</link></text>
    </td>
    <td></td>
    <td class="xlink code">
      <text class="code-info">Simple xlink, with XPath child sequense 1</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="specs.xml#xpointer(/doc/chapter[4]/section/p[2])" xlink:title="See the USB paragraph"&gt;<fake-link>USB interface</fake-link>&lt;/link&gt;</text>
    </td>
  </tr>
  <tr class="odd">
    <td class="doc text">
      <text class="feature-title">Other connectors</text>
      <text class="feature-text">AC adaptor input, <link xlink:type="simple" xlink:href="specs.xml#xpointer(/1/5/3/4)" xlink:title:="See PAL/NTSC paragraph">PAL/NTSC</link> video output (switchable), audio output</text>
    </td>
    <td></td>
    <td class="xlink code">
      <text class="code-info">Simple xlink, with XPath child sequense 2</text>
      <text class="xlink-code">&lt;link xlink:type="simple" xlink:href="specs.xml#xpointer(/1/5/3/4)" xlink:title:="See PAL/NTSC paragraph"&gt;<fake-link>PAL/NTSC</fake-link>&lt;/link&gt;</text>
    </td>
  </tr>
</table>
</doc>
