4.13.1.1 :: Anchor

Description


Anchor ChunkThe <anchorChunk> allows you to place an anchor link on your page to point to somewhere else on your WAPL page.
Typically, you place 2 anchors on your page, one where you want the anchor and the other where you want the link.

Quick Example


  1.  <?xml version="1.0" encoding="UTF-8" ?>
  2.  <wapl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://wapl.wapple.net/wapl.xsd">
  3.   <layout>
  4.   <anchorChunk>
  5.   <anchor_name>top</anchor_name>
  6.   </anchorChunk>
  7.   <row>
  8.   <cell>
  9.   <chars>
  10.   <value>Hello World</value>
  11.   </chars>
  12.   </cell>
  13.   </row>
  14.   <anchorChunk>
  15.   <target_anchor>top</target_anchor>
  16.   <quick_text>top</quick_text>
  17.   </anchorChunk>
  18.   </layout>
  19.  </wapl>

Child Elements


quick_text


The label for the displayed link

Example:
<quick_text>link to top</quick_text>

anchor_name


The name of the anchor link (not displayed on page)

Example:
<anchor_name>top</anchor_name>

target_anchor


The name of the anchor you want to link to.

Example:
<target_anchor>top</target_anchor>

Contents