Repeated question on selection order

Subject: Repeated question on selection order
From: MARK.WROTH@xxxxxxxxxxx (Wroth, Mark)
Date: Mon, 20 Dec 1999 08:32:11 -0800
A couple of days ago, I asked several questions related to an ongoing
attempt to create an SGML based literate programming system.  Various people
on this list (notably Brandon Ibach and David Carlisle) have been very
helpful in resolving specific programming issues I've run into in that

But I still have a theoretical question.  When I use the code

	(with-mode continuation 
	  (make sequence 
	      (select-elements (descendants (document-element
	        `(scrap (continues ,(attribute-string "id"))))))) 

I am guaranteed by the DSSSL specification (paragraph 12.4.3) that the
process-node-list function will process the node list *in order*.  However,
I can't tell from the text of 10.2.5 whether I can guarantee that
select-elements will produce a node list in the order I desire (which is the
order the matching elements appear in the document instance).  The practical
examples I've run seem to indicate that Jade, at least, does so.  But since
a variation in the selection order would have ... interesting ...
possibilities for introducing bugs into the output program source code, I'd
like to be sure that this is not mere coincidence.

 DSSSList info and archive:

Current Thread