• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1726
  • Last Modified:

XHTML Transitional 1.0

When using an XHTML validation website, I get this error message:



<html xmlns = default xml:lang="en" lang="en">
                ^
Error: value of fixed attribute "xmlns" not equal to default


--------------------------------------------------------------------------------

Sorry, this document does not validate as XHTML 1.0 Transitional.

If you use CSS in your document, you should also check it for validity using the W3C CSS Validation Service.


--------------------------------------------------------------------------------

Source Listing
Below is the source input I used for this validation:

   1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   2: <?xml version = "1.0"?>
   3: <!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "amc/www/DTD/xhtml1-transitional_dtd"> -->
   4:
   5:
   6: <html xmlns = default xml:lang="en" lang="en">
   7:   <head>
   

What should the xmlnamespace equal?
0
cma1
Asked:
cma1
  • 3
  • 2
  • 2
  • +1
1 Solution
 
COBOLdinosaurCommented:
In XHTML all attribute values must be quoted.  Try:
<html xmlns = "default" xml:lang="en" lang="en">

Cd&
0
 
cma1Author Commented:
This is not it. The validation engine is looking for a specific file.
0
 
COBOLdinosaurCommented:
We might need some help from the experts over in XML.  You could post
a zero point question over there tehn in the question ask them to take
a look at this by giving them the link back here.

Cd&
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
GibbleCommented:
Your document should start like this...

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
0
 
raizonCommented:
What Gibble has posted is what you are looking for.
0
 
GibbleCommented:
Why a B?  If you needed more info you should have asked.
0
 
cma1Author Commented:
Nice work, Gibble
0
 
GibbleCommented:
But why a B?  I am just curious?
Did I not solve your problem?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now