Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Ajax
Ajax the combination of XHTML, CSS, DOM, XML, XSLT, XMLHttpRequest, and JavaScript
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Ajax 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 August 3rd, 2006, 11:22 AM
gps gps is offline
Registered User
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default .XSL and .JSP problem(docktype)

I am trying to implement for fixed header with scrollable table. We have .xsl file (where actual table gets created) and .jsp file which has all the menus and the search criteria … in order for me to implement fixed header I created style3.css file which has the Scrollwrapper …and then added this in JSP file (see below)
================================================== ================
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/qld.tld" prefix="qld" %>
<qld:browserInfo id="binfo"/>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<script language="javascript" src="<qld:encodeUrl href="/common.js"/>"></script>
    <title>Test Point Analysis</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="Pragma" content="no-cache">
   <% if ( binfo.isBetween( BrowserInfo.TYPE_NETSCAPE, 4.0, 4.99 ) ) {%>
      <link rel="StyleSheet" href=<qld:encodeUrl href="/style_ns4.css"/> type="text/css">
   <% } else { %>
      <link rel="StyleSheet" href=<qld:encodeUrl href="/style.css"/> type="text/css">
      <link rel="StyleSheet" href=<qld:encodeUrl href="/style3.css"/> type="text/css">
   <% } %>
================================================== ===================
XSL file
  <div class="scrollWrapper">
        <table border="1" cellspacing="0" align="center" class="scrollable">

================================================== ===================
My question: I do get fixed header with scrollable table when I just use XHTML doctype(jsp file): <!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
But then the first part of the page (search criteria and menu ) gets messed up …b.c it doesn’t have this <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
so is there any way to distinguish like if/else to let know that use this with only XSL file ? I did try to put both (XHTML and HTML) , but than fixed heading doesn’t come up …and I also tried putting (XHTML) stuff in .xsl file, still it doesn’t work. This project is finished project so I can not change the design …
any help would be helpful. I would like to thank you in advance.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xsl and Jsp kumars_vipin XSLT 1 June 21st, 2007 05:37 AM
Xsl and Jsp kumars_vipin XSLT 0 June 21st, 2007 03:01 AM
how to include jsp page in xsl vijayanmsc XSLT 2 August 23rd, 2006 05:04 AM
Transforming JSP to WML using XSL crispycasper XML 0 May 15th, 2004 12:40 AM
XSL Transform with xsl string NOT xsl file skin XSLT 0 June 16th, 2003 07:30 AM

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