Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 4th, 2008, 12:07 AM
Registered User
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Screen Resolution:HTML file display problem


I have an HTML file generated using XSLT. For the screen resolution 1280 X 1024, the cells in the table are displayed fine. But if the same HTML file is generated in a monitor with resolution 1024 X 768, the cells in the table decrease & hence 2-3 characters in the cell are not visible.

How can I control the width of these cells based on the screen resolution in XSLT? Anyone please let me know ASAP.

Thanks in advance,

Old July 4th, 2008, 12:16 AM
Friend of Wrox
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts

Nothing to do with XSLT. Just use the appropriate <STYLE>s.

If you combine styles with JavaScript, you could change the style info based on the screen width.
Old July 4th, 2008, 03:16 AM
mhkay's Avatar
Wrox Author
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

First you need to work out what HTML you need to generate. That's not an XSLT problem. You need to decide whether you are going to generate different HTML (or CSS) depending on the screen resolution, or whether to try to generate HTML and CSS that works regardless of the screen resolution. If you need advice on such HTML design issues, you're unlikely to get it here. Once you have decided what HTML you want to generate, we can help you produce it using XSLT. It's easy enough to supply parameters to control the XSLT transformation so that it varies the HTML for different cases; it's harder to organize your system to capture the right information from the environment, especially as the more customization you put into it, the more test cases you will need to create and run.

Michael Kay
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML forms AND Screen resolution prabodh_mishra HTML Code Clinic 2 March 8th, 2006 07:41 PM
screen resolution Adam H-W Classic ASP Basics 3 October 13th, 2004 09:13 PM
screen resolution miguel.ossa C# 2 October 9th, 2004 11:58 PM
MAP - Problem with screen resolution tgopal HTML Code Clinic 1 September 1st, 2004 10:28 AM
screen resolution mistry_bhavin Pro VB.NET 2002/2003 0 March 13th, 2004 02:36 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.