cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

setting DOCTYPE declaration

Former Member
0 Likes
1,742

I need a DOCTYPE declaration at the top of a portal component's html output in order to make some CSS features work. If you don't know what I am talking about, its a declaration of the type

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

at the top of an html page.

Does anyone know where to set this and on what level.

I noticed the html of SDN does have the DOCTYPE declaration, but our own portal doesn't seem to produce this DOCTYPE declaration.

View Entire Topic
Former Member
0 Likes

OK, apparently not a clear statement of my problem. So a second try :

Please compare :

This : Source of the page you are currently looking at on SDN. At the top you will find the document type declaration

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

with the HTML of your SAP Enterprise Portal (NW 04 SPS 11 or any other version).

there the portal page starts with <html> but without any document type declaration.

The absence of the document type declaration can cause problems in your browser for correctly handling some CSS features.

So, the question is : if I want to have a document type declaration at the top of my portal page, how do I proceed ? At what level do I need to make changes ? Is it configuration on a global level, is it customization of a JSP, can I add this from within the code of my portal component (which I doubt) or what ?

SDN developers should be able to answer the question as their portal DOES have the document type at the top.