How to page-reference a node which is processed in a different MODE

Subject: How to page-reference a node which is processed in a different MODE
From: "Mok, CheeKong (C.)" <cmok@xxxxxxxx>
Date: Wed, 10 May 2000 13:06:22 -0400
dear all,
how does one make a page reference to a node processed in a particular MODE

this is my sgml file
<doc>
<item>One</item>
<item>Two</item>
</doc>

i process "items" twice. 
the first time to output empty-sosofo's.
the second time to produce paragraphs.

i would like to page-reference the paragraphs created the second time.


(element doc
  (sosofo-append

   (process-children)			;;first time processing

   (with-mode *mode1*		;;second time processing
     (process-children))

   (with-mode *toc*			;;TRY TO page-reference
     (process-children))))

(element item (empty-sosofo))	;;first-time - produces nothing

(mode *mode1*			;;second time -produces something
  (element item
    (make paragraph)))

(mode *toc*				;;HERE IT IS.  however, it
references the empty-sosofo's!!! 
  (element item			;;HOW DO I reference the paragraphs???
    (make paragraph
      (current-node-page-number-sosofo))))


thanks a lot for any insights.


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


Current Thread