Probably a really dumb question...

Subject: Probably a really dumb question...
From: Christopher Walsh <christop@xxxxxxx>
Date: Thu, 1 May 1997 15:21:54 +0000 (GMT)
I think this may be a terribly dull newbie question, but it is
one that is giving me great difficulty, so here goes:
I have a document that looks like this:
And I want to use Jade to output this:
<PARA>file1 = foo.txt
<PARA>file2 = bar.txt
My DSSSL lokks like this:
(element DOCUMENT
 (make sequence
  (!!!output a list of file1, file2, ...!!!)
(element FILENAME
 (make sequence
  (make formatting-instruction
    data: (
       string-append "<PARA>file"
       (number->string (child-number))
       " = ")
My question is: how do I output a list of n file mappings? What do I
put where I currently have  (!!!output a list of file1, file2, ...!!!)?
I want to do something like:
for x = 1 to number_of_FILENAME_children do
  output "file"+x
Or failing that, I want to define an empty string and as I encounter
each FILENAME element, I want to add "<PARA>file(child-number) " to it,
then output this string.
I am having great difficulty doing either of these things.
I get the feeling I am thinking about the problem in the wrong way.
How should I be thinking about the problem?
Thanks in advance for any help,

 CHRIS WALSH [christop@xxxxxxx] \ "Permissive society?
 Technical Author                \  It doesn't exist. 
 SCO Client Integration Division  \  I should know, I've looked for it."
 Vision Park, Cambridge, UK        \                --Rigsby

 DSSSList info and archive:

Current Thread