Re: Sorting like elements

Subject: Re: Sorting like elements
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Tue, 21 Apr 1998 07:22:40 -0500
At 09:35 PM 4/20/98 -0600, Steven L. Anderson wrote:

>Is there anyway to get jade to sort the paragraphs before output so
>that the warning goes before the procedure?  Is it still possible if
>the elements have different parents?

I think that what you have to do is, for every element, ask the question
"does anything want to be before me?", which would would do by seeing if
any elements name the current element in their ID values. This would, I
think, be pretty slow to do in Jade, because it's not optimized for that
sort of query.  To make this efficient, you'd probably have to integrate
Jade with an external system that can optimize the searches for you, which
is not hard in theory....  [Note: this is essentially the same problem you
have trying to base output on the presense of independent hyperlinks--it
really requires some sort of indexing to be perform efficiently.]

There might be a clever way to do this with modes, but nothing comes to mind.

Cheers,

E.
--
<Address HyTime=bibloc>
W. Eliot Kimber, Senior Consulting SGML Engineer
Highland Consulting, a division of ISOGEN International Corp.
2200 N. Lamar St., Suite 230, Dallas, TX 95202.  214.953.0004
www.isogen.com
</Address>


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Sorting like elements
    • Steven L. Anderson - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id XAA05807Mon, 20 Apr 1998 23:42:45 -0400 (EDT)
      • <Possible follow-ups>
      • W. Eliot Kimber - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id IAA17618Tue, 21 Apr 1998 08:29:01 -0400 (EDT) <=