473,802 Members | 2,470 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XHTML 2.0 Troubleshoot

I am learning XHTML 2.0, and I have tried to validade the example of XHTML
2.0 page given on the W3C eBook, but it reports errors :'(

Here's the code:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN" "TBD">
<html xmlns="http://www.w3.org/2002/06/xhtml2"
xml:lang="en"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocat ion="http://www.w3.org/2002/06/xhtml2 TBD"

<head>
<title>Virtua l Library</title>
</head>
<body>
<p>Moved to <a href="http://vlib.org/">vlib.org</a>.</p>
</body>
</html>

I tried this validator: http://validator.w3.org
Do you know where the problem is?
Thanks,

--
K.

http://www.osresources.com/
Jul 20 '05 #1
6 1829


Kerberos wrote:
I am learning XHTML 2.0, and I have tried to validade the example of
XHTML 2.0 page given on the W3C eBook, but it reports errors :'(
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN" "TBD">
<html xmlns="http://www.w3.org/2002/06/xhtml2" I tried this validator: http://validator.w3.org


Which errors do you get? I am not sure that validator has support for
XHTML 2.0 at all as XHTML 2.0 is still under development.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #2
In article <op************ **@cinza.mshome .net>,
Kerberos <no*****@please .com> wrote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN" "TBD">

^^^

Unless the validator recognises the public id, you need to put a
real URL in there.

-- Richard
Jul 20 '05 #3
The online Validator does not seem to support XHTML 2.0
(although this is not very clear reading the W3C web-site).

I had a look at the specification and there seems to be
'only' a RelaxNG schema defined for XHTML 2.0 at the moment.

So if you really want to validate your XHTML 2.0 documents,
you'll have to use a RelaxNG validator (Jing [1]) and use
the RelaxNG definition document [2] and the modules [3] to
validate your documents ...

Regards,
Edwin

[1] http://www.thaiopensource.com/relaxng/jing.html
[2] http://www.w3.org/TR/xhtml2/xhtml20_relax.html
[3] http://www.w3.org/TR/xhtml2/relax_module_defs.html
Jul 20 '05 #4
I'm learning XHTML2, but...
A lot of features don't seem to work.
If I try for instance tags like <address>, <h>, etc...
they don't work on regular browsers...

Here's a sample:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN" "TBD">
<html xmlns="http://www.w3.org/2002/06/xhtml2"
xml:lang="en"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocat ion="http://www.w3.org/2002/06/xhtml2 TBD"

<head>
<title>Virtua l Library</title>
</head>
<body>
<p>Moved to <a href="http://vlib.org/">vlib.org</a>.</p>
<p><address href="mailto:bo *@bob.com">Webm aster</address></p>
<h>Hello!</h>
</body>
</html>

Should we wait to learn XHTML2?

--
K.

http://www.osresources.com/
Jul 20 '05 #5
On Mon, 01 Nov 2004 21:05:25 -0200, Kerberos <no*****@please .com>
wrote:
I'm learning XHTML2,


Why ? There is absolutely no point in trying to learn XHTML 2.
It's arguable as to whether there is even much point for experts to be
working with it.

If you want to learn and use XHTML, then use XHTML 1.0 Transitional.
There's no point in using the others and 1.1 or 2 are especially
problematic.

c.i.w.a.h is probably a better newsgroup to discuss HTML & XHTML. Most
of the regulars there still prefer HTML 4.01 and have a considerable
dislike of any XHTML.

--
Smert' spamionam
Jul 20 '05 #6
* Kerberos wrote in comp.text.xml:
I am learning XHTML 2.0, and I have tried to validade the example
of XHTML 2.0 page given on the W3C eBook, but it reports errors :'(


The W3C Markup Validator does not support XHTML 2.0. It is currently
only able to validate documents using DTDs and the HTML Working Group
has so far not provided a DTD for XHTML 2.0, it is in fact unlikely
that it will as certain XHTML 2.0 features do not work well with DTDs.

Also note that XHTML 2.0 is currently a Working Draft which means
there is still a lot of work to do before the W3C considers it mature
enough to call for implementations . It is unlikely that the W3C Markup
Validator will have meaningful XHTML 2.0 support before XHTML 2.0 is
a Recommendation.
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2149
by: Alex | last post by:
Is it more time-consuming to troubleshoot or just start from scratch. PHP used to work that's why I'm tempted to just re-install Linux.
0
1660
by: Peter Rohleder | last post by:
Hi, I have a few simple questions in order to use modularized xhtml and getting it to work. A simple example may make this obviouse: Lets say we want to create a simple xml-file to reflect a faq-structure.
2
5086
by: trusst_3 | last post by:
Hello, This is the only line in my entire code that does not validate in XHTML : <td width="24" bgcolor="#330066" onclick="javascript:color1()" class="borderWidthr"></td> However, it is valid HTML,since I've defined the function color in the javascript section of the <head> tag.
32
4544
by: jp29 | last post by:
My take on problems composing, serving and rendering XHTML documents/web pages: 1. Typical conscientious web authors are producing XHTML documents (Web pages) that feature valid Markup and with the content (MIME) type specified as text/html (http://keystonewebsites.com/articles/mime_type.php). These pages are then loaded on to their Server where they are served to Rendering Agents (browsers) as HTML (SGML application) documents with no...
16
7119
by: Mcginkel | last post by:
I am trying to find a way to load XHTML content in an Iframe. I use to do this in html by using the following code : var iframeObject = document.createElement("iframe"); MyDiv.appendChild(iframeObject); var data = "<html><head><title>testing</title></head><body>data</body></html>" iframeObject.contentDocument.open(); iframeObject.contentDocument.writeln(data);
82
5723
by: Buford Early | last post by:
I read this in http://annevankesteren.nl/2004/12/xhtml-notes "A common misconception is that XHTML 1.1 is the latest version of the XHTML series. And although it was released a bit more than a year later then the first version of XHTML 1.0, the second edition is actually newer. Furthermore, XHTML 1.1 is not really the follow-up of XHTML 1.0" I thought that XHTML 1.1 was the follow-up to XHTML 1.0 and that XHTML 2.0 will someday be the...
2
2643
by: Joris Janssens | last post by:
I'm trying to write a program for validating XHTML 1.1-documents against the XHTML 1.1 DTD (which is actually the same as validating an XML-file) but I always get a "(404) Not found" error. This is the program itself : ******************************************************************** using System; using System.Xml; using System.Xml.Schema;
12
2417
by: Alex D. | last post by:
How can I stop asp.net from rendering XHTML istead of HTML? My javascripts are rendering wrong because of that. It is rendering &amp; to clients instead of &. Any help? Thanks, Alejandro.
3
5535
by: TheXenocide | last post by:
Hello, First and foremost I'll describe a bit about my problem: I'm trying to make a site layout using ASP.NET 2.0 in Visual Studio .NET 2005 Beta 2. The site is a table based layout that is supposed to consume the entire viewing area (oldschool HTML was <table width="100%" height="100%">). This is not as easy as it sounds using the forementioned technologies. I am using some ASP.NET 2.0 controls that specifically depend on the way...
0
9561
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10532
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10281
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10058
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9111
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6835
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.