This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: dynamic # of columns and column ordering
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] dynamic # of columns and column ordering
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Fri, 2 Nov 2001 17:29:39 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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: http://www.mulberrytech.com/xsl/xsl-list