WebSphere Portal Server - WPS V6 inline style problems

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > January 2007 > WPS V6 inline style problems





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author WPS V6 inline style problems

2007-01-26, 1:19 pm

Hi,

I am in the process of migrating a portal from WPS v5.0 to v6. I am having some trouble with inline style statements which have been used extensively throughout the site by the original developers for layout purposes. The problem I am seeing is that the s
tyle statements are not being processed/rendered in the same way in v6 which is causing the site to look very strange. I have saved a page as a complete webpage in IE7 (we are restricted to IE for this portal) and noticed that the first line appears as:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

I discovered that removing the "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd" statement from the saved page corrects all the problems I am seeing. Unfortunately I have no idea how to stop WPSv6 from including this. The Default.jsp file in the
theme defines the doctype as:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">

This has no effect. Any help would be greatly appreciated!
Regards
Gareth Trott

2007-01-30, 1:19 pm

Just to let people know I discovered that this was due to the original developer not fully conforming to the HTML standard being defined in the DOCTYPE directive. Due to time restrictions I found a quick fix was to remove the DOCTYPE from the theme.

Looks to be another case of standards being tightened up, all good but a pain when pressed for time :o)

Regards
Gareth
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com