ParseException in .xhtml files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gtludwig
    New Member
    • Nov 2009
    • 5

    #1

    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.dt d

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

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

    Thanks in advance!
    GTLudwig
    Attached Files
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    sorry, the image is too small. could you provide a better image?

    you can do this by
    [img]http://www.example.org/image.png[/img]

    Comment

    • gtludwig
      New Member
      • Nov 2009
      • 5

      #3
      Hmm, try looking here:

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        what do you try to do?

        Comment

        • gtludwig
          New Member
          • Nov 2009
          • 5

          #5
          I just open the document and the error appears. Take, for instance, the following template.xhtml file:

          Code:
          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          
          <html xmlns="http://www.w3.org/1999/xhtml"
          	xmlns:h="http://java.sun.com/jsf/html"
          	xmlns:f="http://java.sun.com/jsf/core"
          	xmlns:ui="http://java.sun.com/jsf/facelets"
          	xmlns:rich="http://richfaces.org/rich"
          	xmlns:a4j="http://richfaces.org/a4j">
          
          <body>
          <table>
          	<tr>
          		<td><ui:include src="/jsf/AnamanMenu.xhtml" /></td>
          	</tr>
          	<tr>
          		<td><ui:insert name="body" /></td>
          	</tr>
          	<tr>
          		<td><ui:insert name="bottom" /></td>
          	</tr>
          </table>
          </body>
          </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?

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            Originally posted by gtludwig
            It looks alright, doesn't it?
            no.

            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.)

            Comment

            • gtludwig
              New Member
              • Nov 2009
              • 5

              #7
              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?

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                Originally posted by gtludwig
                So, I need to point this page to another dtd?
                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)

                Comment

                • gtludwig
                  New Member
                  • Nov 2009
                  • 5

                  #9
                  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!

                  GTLudwig

                  Comment

                  Working...