RE: [xsl] dynamic # of columns and column ordering

Subject: RE: [xsl] dynamic # of columns and column ordering
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 2 Nov 2001 17:29:39 -0000
> I have to build a page that the user can set preferences for
> what columns he wants to see and in what order.
> Can this be done purely with XSLT?

No: you'll need some code, if only to invoke the transformations.

You don't say whether the preferences are set in advance as part of a user
profile, or if you want to user to be able to change the appearance of the
screen by clicking on buttons. You don't say whether you want to do things
client-side or server-side, or what constraints there are on browser
versions. These constraints have a major influence on the chosen design.

Writing a parameterized stylesheet to handle lots of variations or
presentation can be tricky; an alternative to consider is to generate a new
stylesheet each time the user selects a different presentation.

Mike Kay

 XSL-List info and archive:

Current Thread