473,396 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ParseException in .xhtml files

Hi all,

I'm working on a Facelets project inside Eclipse and I keep getting the following error almost every time I open up a .xhtml page:

ParseException: Error validating the model: Server returned HTTP response code: 503 for url: http://www.w3.org/TR/html1/DTD/xhtml1-transitional.dtd

Even more odd is that Eclipse points location to line -1.

Attached is a picture of this error's property window.

Thanks in advance!
Attached Images
File Type: jpg parseException.jpg (9.6 KB, 372 views)
Nov 3 '09 #1
8 3306
8,658 Expert Mod 8TB
sorry, the image is too small. could you provide a better image?

you can do this by
Nov 3 '09 #2
8,658 Expert Mod 8TB
what do you try to do?
Nov 4 '09 #4
I just open the document and the error appears. Take, for instance, the following template.xhtml file:

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml"
  5.     xmlns:h="http://java.sun.com/jsf/html"
  6.     xmlns:f="http://java.sun.com/jsf/core"
  7.     xmlns:ui="http://java.sun.com/jsf/facelets"
  8.     xmlns:rich="http://richfaces.org/rich"
  9.     xmlns:a4j="http://richfaces.org/a4j">
  11. <body>
  12. <table>
  13.     <tr>
  14.         <td><ui:include src="/jsf/AnamanMenu.xhtml" /></td>
  15.     </tr>
  16.     <tr>
  17.         <td><ui:insert name="body" /></td>
  18.     </tr>
  19.     <tr>
  20.         <td><ui:insert name="bottom" /></td>
  21.     </tr>
  22. </table>
  23. </body>
  24. </html>
It looks alright, doesn't it?

Well, on Eclipse, every time I open this file, and other with the .xhtml extension for that matter, a red square with an white x (the error symbol) appears over the file name on the package tree list and an message saying the file contains errors pops up upon saving.

Doesn't makes much sense, does it?
Nov 4 '09 #5
8,658 Expert Mod 8TB

basic XHTML doesn’t allow elements that are not defined in its DTD (all the namespaced elements). therefore a lot of XHTML flavours exist (xhtml+svg, xhtml+mathml, etc.)
Nov 4 '09 #6
basic XHTML doesn’t allow elements that are not defined in its DTD (all the namespaced elements). therefore a lot of XHTML flavours exist (xhtml+svg, xhtml+mathml, etc.)
Hmm, ok, I didn't know of that. Thanks! So, I need to point this page to another dtd?
Nov 4 '09 #7
8,658 Expert Mod 8TB
do you want to write it yourself? (there is no such DTD available)

you could be better off writing an XML Schema Definition (xhtml.xsd, see W3C) or you can use the HTML 5 DTD (which is pointless with regard to validation)
Nov 4 '09 #8
Since I'm not very fond of going that deep into DTDs. I tried getting another web project and it seems there's something wrong with my eclipse... dang! should I've discovered this before, my work on this project might've been finished.

Thanks for your time and insights!

Nov 4 '09 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Greg | last post by:
Hi everybody, so, I would like to use XML files for some parts of my website. I would like to respect W3C XHTML 1.1 recommendation. Then, I have these two docs : o My XML file: <?xml...
by: mike | last post by:
regards: I use Jtidy (api) to translate a HTML file into a "XHTML file". But The "XHTML file" cannot be identified by nokia 6600. Do I miss something important? Or this is Jtidy's weakness or...
by: Mark Tranchant | last post by:
My site now uses Apache MultiViews and some PHP code to determine whether your browser can handle the application/xhtml+xml media type. If it does, the document is sent with that content type and...
by: Leo Breebaart | last post by:
Hi all, I have written an XHTML syntax checker, called 'Tidybot'. It is built on top of the well-known "HTML Tidy" library. I wrote it because I needed some very specific functionality I...
by: Gustaf | last post by:
I just read this article from today: http://webstandards.org/buzz/archive/2005_09.html I need some help understanding this sentense: The W3C recommends XHTML 1.1 should be served with the...
by: Dan Jacobson | last post by:
I shall jump on the XHTML bandwagon. I run my perfectly good html4/strict pages thru $ tidy -asxhtml -utf8 #to get: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"...
by: anupamjain | last post by:
Hi, After 2 weeks of search/hit-and-trial I finally thought to revert to the group to find solution to my problem.(something I should have done much earlier) This is the deal : On a JSP...
by: billelev | last post by:
I'm a relative newbie to java and have encountered a "source not found" error when trying to debug the following section of code (for the ParseException.class). public PaymentDates (String...
by: mk189 | last post by:
Hi, I am trying to create XML schema of custom markup language, enriched by XHTML. In simplified version, the XML documet could look like that: <a:alarm-manual xmlns:a="alarm-manual"...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
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,...

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.