How to refer to place of document, which is not marked by author!?

Let's imagine an html-element without attributes "id" and "name"
(it's usual situation).
And we need to refer to it in attribute "href".

My first group of offers is searches by serial number of tags.

Example 1.
<a src="./a.htm#:html.body.p[187].em[2]">text</a>
 Browser search first tag HTML, than first tag BODY inside (!) it,
 than 187-th tag P inside BODY, than 2-nd tag EM inside 187-th tag P.
 Link refers to tag EM.

Example 2.
<a src="./b.htm#:body.h2[5]">text</a>
 Browser search first tag BODY, than 5-th tag H2 inside it.
 Link refers to tag H2.

Example 3.
<a src="./c.htm#:html.body.h3[4]+p[12]">text</a>
 Browser search first tag HTML, than first tag BODY inside it,
 than 4-th tag H3 inside BODY, than 12-th tag P after (!) H3.
 Link refers to tag P.

 So "A.B+C" means, that tags B and tag C are on the same level of hierarchy,
 and both B and C are inside A (not C inside B).

Example 4.
<a src="./d.htm#:body.h1[3]+h2[2]+h3[5]+p[8].b[3]">text</a>
 Browser search first tag BODY, than 3-rd tag H1 inside it,
 than 2-nd tag H2 after this H1, than 5-th tag H3 after this H2,
 than 8-th tag P after this H3, than 3-th tag B inside this tag P.
 Link refers to tag B.

---

My second group of offers is searches by text between open and close tags,
and by value of attribute "src".
Several blanks, tabulation, new lines in this text or value
are considered as one blank.

Example 1.
<a src="./a.htm#:html.body.h1[special graph]+img[./pic.jpg]">text</a>
 Browser search first tag HTML, than first tag BODY inside it,
 than '<h1>special graph</h1>' inside BODY,
 than '<img src="./pic.jpg">' after this H1.
 Link refers to tag IMG.

Example 2.
<a src="./b.htm#:dfn[stencil]">text</a>
 Browser search first '<dfn>stencil</dfn>'.
 Link refers to tag DFN.

 
Dmitry Turin
http://html6.by.ru
http://sql4.by.ru
http://computer2.by.ru

Received on Thursday, 26 April 2007 05:24:35 UTC