Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
XHTML DTD
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John Hughes  
View profile  
 More options Feb 28 2000, 3:00 am
Newsgroups: microsoft.public.xml
From: "John Hughes" <hugh...@netcomuk.co.uk>
Date: 2000/02/28
Subject: XHTML DTD
Using the XHTML DTD from W3C I get the following error. Im not sure if this
is a bug or Im making an error. If anyone can help it would be appreciated.

Line : 5
Position : 7
Reason : Element content is invalid according to the DTD/Schema.
Expecting: head

The file its validating :

<?xml version="1.0"?>
<!DOCTYPE html SYSTEM "C:\$Source\XML\xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<html>
<head><title>Test</title>
</head>
<body></body>
</html>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gavrielov, Vladislav  
View profile  
 More options Feb 28 2000, 3:00 am
Newsgroups: microsoft.public.xml
From: "Gavrielov, Vladislav" <gavrie...@icon.at>
Date: 2000/02/28
Subject: XHTML DTD
The file its validating :

<?xml version="1.0"?>
<!DOCTYPE html SYSTEM
"C:\$Source\XML\xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<html>
<head><title>Test</title>
</head>
<body></body>
</html>

the second <html> is not necessary here - remove it and it will work.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Hughes  
View profile  
 More options Feb 28 2000, 3:00 am
Newsgroups: microsoft.public.xml
From: "John Hughes" <hugh...@netcomuk.co.uk>
Date: 2000/02/28
Subject: Re: XHTML DTD
Sorry.

The file is :

<?xml version="1.0"?>
<!DOCTYPE html SYSTEM "C:\$Source\XML\xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Test
</title>

</head>

<body>
</body>

</html>

"John Hughes" <hugh...@netcomuk.co.uk> wrote in message

news:#3d5Bpeg$GA.205@cppssbbsa02.microsoft.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam Judson  
View profile  
 More options Feb 28 2000, 3:00 am
Newsgroups: microsoft.public.xml
From: "Sam Judson" <samjud...@msn.comX>
Date: 2000/02/28
Subject: Re: XHTML DTD
Ignore me..

"John Hughes" <hugh...@netcomuk.co.uk> wrote in message

news:eiFc0Mfg$GA.205@cppssbbsa02.microsoft.com...

"C:\$Source\XML\xhtml1/DTD/xhtml1-transitional.dtd">


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam Judson  
View profile  
 More options Feb 28 2000, 3:00 am
Newsgroups: microsoft.public.xml
From: "Sam Judson" <samjud...@msn.comX>
Date: 2000/02/28
Subject: Re: XHTML DTD
Should it be www.w3c.org not www.w3.org? or is this just a typo?

Sam Judson

"John Hughes" <hugh...@netcomuk.co.uk> wrote in message

news:eiFc0Mfg$GA.205@cppssbbsa02.microsoft.com...

"C:\$Source\XML\xhtml1/DTD/xhtml1-transitional.dtd">


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gavrielov, Vladislav  
View profile  
 More options Feb 28 2000, 3:00 am
Newsgroups: microsoft.public.xml
From: "Gavrielov, Vladislav" <gavrie...@icon.at>
Date: 2000/02/28
Subject: XHTML DTD
The file is :

<?xml version="1.0"?>
<!DOCTYPE html SYSTEM
"C:\$Source\XML\xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Test
</title>

</head>

<body>
</body>

</html>

Well, your problem is really tricky!

I have immediately tried your file with our XML Spy 3.0b2 and it told
me, that file is valid (this version uses our own validator engine). And
just before to write you this answer, I have tried it also with XML Spy
2.5 which uses IE5.0 for validation, and it placed the cursor on <head>
element, and said "head expected!"

Going through DTD I have finally found the reason of all that strange
error messages. The problem is, that <html> is defined with a fixed
attribute xmlns="http://www.w3.org/1999/xhtml" which you have also used
in your XML file.

But using this attribute makes html element and all sub-elements named
actually with prefix {http://www.w3.org/1999/xhtml}. At the same time
the complete DTD is written for simply named elements, without prefix!

It is the very old problem about using DTD and Namespaces. James Clark
has written in his article http://www.jclark.com/xml/xmlns.htm about
Namespaces, that DTD validation has to be done WITHOUT to care about
Namespaces, means to see the pure names.

I hope my answer helps you.

Vladislav Gavrielov
Icon Information-Systems  makers of XML Spy http://www.xmlspy.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joseph Kesselman (yclept Keshlam)  
View profile  
 More options Feb 29 2000, 3:00 am
Newsgroups: microsoft.public.xml
From: "Joseph Kesselman (yclept Keshlam)" <kesh...@us.ibm.com>
Date: 2000/02/29
Subject: Re: XHTML DTD

Sam Judson wrote:
> Should it be www.w3c.org not www.w3.org? or is this just a typo?

No, that's deliberate. The W3C's URLs really do start with
www.w3.org.

--
-----------------------------------------------------------------
Joe Kesselman, kesh...@us.ibm.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »