[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XHTML html validation

Subject: Re: XHTML html validation
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Fri, 16 Feb 2007 15:01:30 +0100
Re:  XHTML html validation
John Steel wrote:
You mean the server is sending these pages as <filename>.xhtml? I added this
<mime-mapping extension=".xhtml" mime-type="text/html"/>
with no effect.



No. I don't know how you serve your pages, that depends on many factors. This mime-mapping won't help. Make sure you follow Owen's suggestion, though.


Try the following: add a file with an unknown extension in your server path, the file content must be precisely the same as the result of one of your XSLT transformations. Do the same for a file with an *.htm extension. Let's call them file1.some-ext and file2.htm.

Now, request both files from your server, through your web server (i.e., *not* directly from your local path, of course). Watch the results. Look through your web servers manual and/or search some forums. Change the settings until you see that both of the files serve the same way. If you are unsure of the content of the XHTML being conformant, try a minimal page:

<html>
  <head><title>here</title></head>
  <body><p>some body</p></body>
</html>

If you use Firefox, make sure to watch the page info of the page. It must read:

Type: text/html
Render mode: Standards compliance mode
Encoding: UTF-8 (or whatever you use there)

under "Meta" you should find:
Content-Type:    text/html; charset=utf-8

which is not the preferred mimetype for xhtml, but to have your pages work in IE as well, you should stick to it (preferred are: text/application+xml or text/application+xhtml, I believe)

Once you have both file1.some-ext and file2.htm looking the same in every browser you want them to look the same in, you should propagate your changes to the server that serves your XSLT results.

Good luck!

-- Abel Braaksma
  http://www.nuntia.nl

PS, all my pages start out as follows and are served as text/html, but do not have an extension (i.e are results of xxx.do etc). Check if your pages look similar, but then with XHTML 1.0 Transitional, of course:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
....


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.