facebook

JSP validation problem?

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #221731 Reply

    YellowDog
    Member

    Eclipse 3.0.1 / MyEclipse 3.8.2
    MyEclipse-Validation property page – default

    I think I’m running into a validation problem. I’m getting errors on any XML file in XML-Schema format – currently two TLD files and web.xml. The error marker is placed at the “version” attribute of the root element. The error text is “cvc-elt.1: Cannot find the declaration of element ‘name’ ” where name is the root element. When I turn off validation, the problem disappears. Here is the root element of one of the files in question:

    <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd"
        version="2.0">
    

    Have you seen this before?

    #221746 Reply

    Scott Anderson
    Participant

    The problem is that your xmlns definition doesn’t match the one available in the XSD Schema library. You can either create a file using the wizard from this schema by selecting File > New > XML File (from DTD/Schema) and then selecting the schema from the repository or you can add the xsd under another name at Window > Preferences > MyEclipse > Editors > XML > XML Catalog.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSP validation problem?

You must be logged in to post in the forum log in