Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 28th, 2007, 10:26 AM
Authorized User
 
Join Date: Sep 2006
Location: Cologne, , Germany.
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default Scrollable Table Options ?

Hi everyone,

I have some simple but very long reports that I would like to present in tabular format. To make this more comfortable for the reader I would like the headers to remain static at the top of the tables and just the content to scroll.

I got this working with 'DIV' commands but found that, as various users re-sized their browsers, the column headers would go out of line. I tried fixing this with column width declarations but this wouldn't work in all cases (i.e. where text is too long for the column, it all gets distorted).

Next I found the mark-up tags <thead> and <tbody> which looked perfect for my needs ...

http://www.w3.org/TR/html4/struct/ta...tml#edef-TBODY

... but here I found that, in order to get this to work with IE (where the presentation wasn't as good as Firefox), I needed to add the declaration ...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

... at the top of the HTML.

Then, when I tried to incorporate my scrolling table into my XSL code, I found that both the header (<!DOCTYP HTML ... ) was not accepted by the IE interpreter and my '<xsl:when ...' clauses conflicted with my (new) <thead> and <tbody> syntax.

This is all turning into a rather big headache for me and I am hoping that someone out there can recommend the best method for implementing scrollable tables (with fixed headers) in XSL under IE.

This must be an issue that has come up before and, although I have googled on the key words (a lot), I find no clear recommendations and loath to resort to the various plug-ins and coded fixes that seem to be on offer. Best for me would be the thead/tbody solution but I must be able to implement this in XSLT under IE.

Many thanks for any tips that you can give me.

Cheers,
Alan.

Reply With Quote
  #2 (permalink)  
Old October 28th, 2007, 04:11 PM
mhkay's Avatar
Wrox Author
Points: 18,481, Level: 59
Points: 18,481, Level: 59 Points: 18,481, Level: 59 Points: 18,481, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,960
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Some of your problems seem to be in designing the HTML that you want to produce. This isn't the right place to get HTML advice. I'd suggest that you start by producing a mock-up of the HTML you want to generate before you start writing the XSLT code to generate it. When you know what the output of your stylesheet should be, we can help you to write the stylesheet.

Your reference to xsl:when conflicting with thead/tbody suggests that you are still thinking of XSLT as a language that outputs lexical XML tags. It doesn't: it produces a tree of nodes. It's very important to understand that difference.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pure CSS Scrollable Table with Fixed Header rupen CSS Cascading Style Sheets 4 June 4th, 2007 08:30 PM
Scrollable Control - Alternatives? pagates C# 4 April 5th, 2006 03:26 AM
Headers in a Scrollable Datagrid Dilip Nagle ASP.NET 1.0 and 1.1 Basics 0 March 20th, 2005 12:11 AM
scrollable window crmpicco Javascript How-To 2 February 11th, 2005 03:56 AM
Repositioning a scrollable window Walter G Javascript How-To 1 June 17th, 2004 10:50 AM



All times are GMT -4. The time now is 10:04 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.