0 Replies Latest reply on Dec 23, 2009 10:17 PM by apstone

    Errors validating navigation xml in Eclipse

    apstone
      This is my first post, so apologies if this is trivial.

      My seam application does work, but I am getting validation errors in Eclipse.

      The source for the navigation file is:

      <?xml version="1.0" encoding="UTF-8"?>
      <page xmlns="http://jboss.com/products/seam/pages"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.2.xsd">

         <navigation from-action="#{identity.login}">
            <rule if="#{identity.loggedIn}">
               <redirect view-id="/home.xhtml"/>
            </rule>
         </navigation>

      </page>

      This is part of the seam security framework.

      My problem is that eclipse reports a lot of errors against the http://jboss.com/products/seam/pages-2.2.xsd file.

      For example:

      s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'JBoss - Global Leader in Open Source Middleware Software'.
      s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '// initialise plugins'.
      s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'jQuery(function(){'.
      s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'jQuery('il.sf-menu').superfish():'.

      and many others.

      It looks as though the parser is picking up a live web page, rather than the xsd file.

      Any ideas what is happening would be most useful.

      Cheers,
          Andy.