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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Sorting like elements, Steven L. Anderson | Thread | Daniel M. German's tutorial: mirror, Georg Rehm |
Getting the contents of an element, Georg Rehm | Date | Re: Getting the contents of an elem, Chris Maden |
Month |