Hi Mark,
Thanks a lot! The mistakes in the square brackets department must have crept in during the copy&paste series.
Your solution with subfilter worked perfectly. I still do not understand why you cannot just put the variable name fil1 between angle brackets inside the filter expression for fil2, because the output of fil1 looks OK to me and a series of tiddler names makes up a valid filter expression (isn't it?), but hey.
I noticed that if in fil1 you use the value parameter instead of the filter, fil2 also works fine (in this simple case, that is, maybe not in more complex cases). So that would be:
<$set name="fil1" value="[tag[tag1]]">
<$set name="fil2" filter="[subfilter<fil1>]+[tag[tag2]]">
<$text text=<<fil1>>/> <!-- this now gives "[tag[tag1]]" -->
<$text text=<<fil2>>/> <!-- works! -->
</$set>
</$set>
Thanks again!
Greetings,
Sjaak