W3C home > Mailing lists > Public > w3c-sgml-wg@w3.org > April 1997

Re: Another pseudo-element gotcha

From: Terry Allen <tallen@sonic.net>
Date: Mon, 14 Apr 1997 10:20:37 -0700
Message-Id: <199704141720.KAA29591@bolt.sonic.net>
To: pflynn@curia.ucc.ie, w3c-sgml-wg@w3.org
Nothing wrong with tree walking by number if you're pointing into
a stable text (a testament), or you really want to know what
chapter four is right now.  "Stuff on the Web" can be anything,
and will become more diverse.

Regards, Terry

From w3c-sgml-wg-request@w3.org Mon Apr 14 10:01:52 1997
Received: from www19.w3.org (www19.w3.org [18.29.0.19]) by sub.sonic.net (8.8.5/8.7.3) with SMTP id KAA12973 for <tallen@sonic.net>; Mon, 14 Apr 1997 10:01:45 -0700
Received: by www19.w3.org (8.6.12/8.6.12) id MAA03790; Mon, 14 Apr 1997 12:59:40 -0400
Resent-Date: Mon, 14 Apr 1997 12:59:40 -0400
Resent-Message-Id: <199704141659.MAA03790@www19.w3.org>
Date: 14 Apr 1997 16:26:56 +0100
From: Peter Flynn <pflynn@curia.ucc.ie>
Subject: Re: Another pseudo-element gotcha
To: w3c-sgml-wg@w3.org
Message-id: <199704141526.QAA06419@curia.ucc.ie>
Old-X-Envelope-to: w3c-sgml-wg@w3.org
MIME-version: 1.0
Content-type: text/plain; charset="us-ascii"
Content-transfer-encoding: 7BIT
X-Sender: pflynn@curia.ucc.ie
X-Mailer: Windows Eudora Light Version 1.5.2
X-List-URL: http://www.w3.org/pub/WWW/Archives/Public/w3c-sgml-wg/
X-See-Also: http://www.w3.org/pub/WWW/MarkUp/SGML/Activity
Resent-From: w3c-sgml-wg@w3.org
X-Mailing-List: <w3c-sgml-wg@w3.org> archive/latest/4042
X-Loop: w3c-sgml-wg@w3.org
Sender: w3c-sgml-wg-request@w3.org
Resent-Sender: w3c-sgml-wg-request@w3.org
Precedence: list
Status: R

At 07:49 14/04/97 -0700, Tim Bray wrote:

>Anyone who uses tree-walking-by-number-alone to point to stuff on the
>Web has rocks in their head.  It may be possible occasionally, to
>count typed nodes (e.g. the fourth chapter), but just counting nodes,
>or levels in the tree, is guaranteed, I repeat guaranteed, to fail,
>in a high proportion of cases. 

Emperor's new clothes. I always wondered how it was supposed to work when
so many documents are either dynamically constructed, or in a constant
state of revision. I tend to put IDs on all the things I think people might
want to point at, but that's pretty one-sided too. A combination of regexp
and proximity and element-sensitive searching would help:

id(pubs)foreign(findme beer near pretzel within element ITEM)

///Peter
Received on Monday, 14 April 1997 13:19:32 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 24 September 2003 10:04:24 EDT