Creating dynamic categorized views - expand all

Hej,

i have implemented the solution described in this article on a Domino view:

but now I would like to add two buttons: collapse all & expand all.

the collapse all is not the problem since it uses the same initial view to build the html.

for the ‘expand all’ view I have a problem since I cannot use the same XSL stylesheet on a different view

-?ReadViewEntries&CollapseView

becomes:

?ReadViewEntries&ExpandView

I assume (??)

Does anyone have a solution for this?

I suppose I have to re-write the XSL file in order to transform a expanded view…

Thanks in advance for your help!

KR // Patrick