Hyperanchor exapmles

In this page, hyperanchor format example is described below.

Hyperanchors will differ depending on the existence of unique "id" / "name" attribute or the existence of same name node in previous siblings.

Here's the example of hyperanchor for some exemplar HTML structures.
"characters" indicate the selected range.

In case of that unique attribute exists

[HTML]

<HTML>
<HEAD>
  <TITLE>...</TITLE>
  <META... />
</HEAD>
<BODY>
  <DIV id="contents">sample characters 1</DIV>
  <TABLE>
    <TR>
      <TD>sample characters 2</TD>
      <TD>sample characters 3</TD>
    </TR>
  </TABLE>
</BODY>
</HTML>

[hyperanchor]

http://www.hyper-anchor.org/tutorial/sample_en.html#hyperanchor1.2://DIV[@id=&quot;contents&quot;](3)(3)(ple)&//DIV[@id=&quot;contents&quot;](14)(3)(act)

In case of that unique attribute exists in the previous siblings node or parent node

[HTML]

<HTML>
<HEAD>
  <TITLE>...</TITLE>
  <META... />
</HEAD>
<BODY>
  <DIV id="contents">sample characters 1</DIV>
  <TABLE>
    <TR>
      <TD>sample characters 2</TD>
      <TD>sample characters 3</TD>
    </TR>
  </TABLE>
</BODY>
</HTML>

[hyperanchor]

http://www.hyper-anchor.org/tutorial/sample_en.html#hyperanchor1.2://DIV[@id=&quot;contents&quot;]/following-sibling::TABLE[1]/TBODY[1]/TR[1]/TD[2](3)(3)(ple)&//DIV[@id=&quot;contents&quot;]/following-sibling::TABLE[1]/TBODY[1]/TR[1]/TD[2](14)(3)(act)

In case of that unique attribute does not exists

[HTML]

<HTML>
<HEAD>
  <TITLE>...</TITLE>
  <META... />
</HEAD>
<BODY>
  <DIV id="contents">sample characters 1</DIV>
  <TABLE id="contents">
    <TR>
      <TD>sample characters 2</TD>
      <TD>sample characters 3</TD>
    </TR>
  </TABLE>
</BODY>
</HTML>

[hyperanchor]

http://www.hyper-anchor.org/tutorial/sample_en.html#hyperanchor1.2:/HTML[1]/BODY[1]/TABLE[1]/TBODY[1]/TR[1]/TD[2](3)(3)(ple)&/HTML[1]/BODY[1]/TABLE[1]/TBODY[1]/TR[1]/TD[2](14)(3)(act)

In case of that multiple nodes are selected

[HTML]

<HTML>
<HEAD>
  <TITLE>...</TITLE>
  <META... />
</HEAD>
<BODY>
  <DIV id="contents">sample characters 1</DIV>
  <TABLE>
    <TR>
      <TD>sample characters 2</TD>
      <TD>sample characters 3</TD>
    </TR>
  </TABLE>
</BODY>
</HTML>

[hyperanchor]

http://www.hyper-anchor.org/tutorial/sample_en.html#hyperanchor1.2://DIV[@id=&quot;contents&quot;]/following-sibling::TABLE[1]/TBODY[1]/TR[1]/TD[1](3)(3)(ple)&//DIV[@id=&quot;contents&quot;]/following-sibling::TABLE[1]/TBODY[1]/TR[1]/TD[2](6)(3)(ple)

In case of that style is set

[HTML]

<HTML>
<HEAD>
  <TITLE>...</TITLE>
  <META... />
</HEAD>
<BODY>
  <DIV id="contents">sample characters 1</DIV>
  <TABLE>
    <TR>
      <TD>sample characters 2</TD>
      <TD>sample characters 3</TD>
    </TR>
  </TABLE>
</BODY>
</HTML>

[hyperanchor]

http://www.hyper-anchor.org/tutorial/sample_en.html#hyperanchor1.2://DIV[@id=&quot;contents&quot;](3)(3)(ple)&//DIV[@id=&quot;contents&quot;](14)(3)(act)&background-color:rgb(255,100,100);border:thin%20dotted%20rgb(204,204,204);

In case of that non text node is selected

[HTML]

<HTML>
<HEAD>
  <TITLE>...</TITLE>
  <META... />
</HEAD>
<BODY>
  <DIV id="contents">sample characters 1</DIV>
  <TABLE>
    <TR>
      <TD><img src="http://www.hyper-anchor.org/tutorial/img.jpg" /></TD>
      <TD>sample characters 3</TD>
    </TR>
  </TABLE>
</BODY>
</HTML>

[hyperanchor]

http://www.hyper-anchor.org/tutorial/sample3_en.html#hyperanchor1.2://DIV[@id=&quot;contents&quot;]/following-sibling::TABLE[1]/TBODY[1]/TR[1]/TD[1]/IMG[1](0)(1)(src%3Ahttp%3A%2F%2Fwww.hyper-anchor.org%2Ftutorial%2Fimg.jpg)