Hal Jenkins Posted September 5, 2005 Posted September 5, 2005 I would like to be able to format my results pages so that the first 30 found records will appear in one column and the second 30 (if any appear in the second column. I will max my results to 60 so that only 2 columns are requried... Any help is appreciated Thanks
IdealData Posted September 5, 2005 Posted September 5, 2005 You can set your "Layout setup" to print in multiple columns, and hove the option of printing "across then down", or "down the columns"
Martin Brändle Posted September 5, 2005 Posted September 5, 2005 Hal asked his question in the XSLT forum, so probably he is looking for a CWP solution ... and Mark's answer will not help here. I see three possible "Ansätze": 1) You have the XML result tree, but if there are more than 30 records, are willing to neglect it and to reload it in two chunks. Depends on the size of your XML tree if you can do that. That's the cheapest in terms of programming and can be done in one page, but is not very efficient. 2) = variant of 1) You neglect in the first instance to determine the full XML result tree, but just get the number of records that would be returned. Then you get the results in one (<=30) or two chunks (>30). Can be done in one or two pages. 3) You have the XML result tree, but are not willing to neglect it. Difficult, because there are no numbered loops in XSLT and you have to resort to recursive template calls to achieve something like numbered loops (also in two junks). Most complicated, can be done in one page. You will see later different implementations - GTG now.
Martin Brändle Posted September 5, 2005 Posted September 5, 2005 Solution 1) . . . . . . Caveat: There might be some typos. I did not test the solution. But you see the general outline.
Martin Brändle Posted September 5, 2005 Posted September 5, 2005 Solution 2) equal to solution 1 that you call with -max=0
Recommended Posts
This topic is 7084 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now