Extend DVWP Pagination for optionally showing all items

Sometimes you just like to turn off the pagination feature of a DataViewWebPart (DVWP) i.e. to print the list.
Achieving this as an optional behaviour is very easy:

In the XSLT of the DVWP find:

(where “6” is the numer of items per page) and delete it

Next scroll up to </ParameterBindings> and add

before.

Then scroll down to the section with loads of <xsl:param> tags.

Add

(“6” is again the default number of items per page)

At the end of the template “dvt_1.navigation” add:

Save, reload and you are done…