facebook

XML with RELAX-NG Schema

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #226752 Reply

    acuretra
    Member

    I have the following resin-web.xml file in my WEB-INF directory:

    <!– Resin specific stuff –>

    <web-app xmlns=”http://caucho.com/ns/resin”&gt;
    <!– Request that JSP files are compiled when starting Resin –>
    <listener>
    <listener-class>com.caucho.jsp.JspPrecompileListener</listener-class>
    <init>
    <extension>jsp</extension>
    <extension>jspx</extension>
    </init>
    </listener>
    </web-app>

    where it complains loudly that “cvc-elt.1: Cannot find the declaration of element ‘web-app’.

    It so happens that Caucho only supplies RELAX NG schemas for their configuration files, which it appears to me that MyEclipse does not support as opposed to DTD and XSD.

    How would I handle this situation with MyEclipse?

    (This message goes away if I remove the name space declaration, so I have a work-around but that is only because Resin is lenient. I expect the problem to crop up again for some pending XSLT problemt).

    #226781 Reply

    Riyad Kalla
    Member

    Is the erorr marked in the LEFT or RIGHT margin of the XML editor? The workaround is what I suggest for now, we will investigate this though and see what we can do.

    #226925 Reply

    acuretra,

    I’m having the same problem with MyEclipse & Resin.

    However, according to the Resin documentation, there is a better way to deal with this.

    Check out this FAQ:

    http://www.caucho.com/quercus/faq/question.xtp?question_id=1423

    Basically, you can create a Resin-specific web.xml file.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: XML with RELAX-NG Schema

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