3 Replies Latest reply on Nov 22, 2008 2:29 AM by Francisco Jose Peredo Noguez

    2.1.0.SP1 : validation error in pages.xml

    gonzalad Apprentice

      Hello;


      Upgrading from Seam 2.0.2.SP1 to 2.1.0.SP1, I have some validation errors (xsd validation on my IDE) on my pages.xml.


      Here is the list :


      . <render view-id="#{navigationHelper['detailChargeFrom']}"/> (error on value of view-id)
      from-action="goBack" (error on value of from-action)


      . <render view-id="#{empty navigationHelper['detailChargeFrom'] ? '/home.jspx' : navigationHelper['detailChargeFrom']}"/> (error on value of view-id)


      I think this usage of pages.xml is valid and can be quite common.


      Can you relax your pages.xsd ?


      For instance, just modifying :



          <xs:simpleType name="view-id">
              <xs:restriction base="xs:string">
                  <xs:pattern value="(/.*)|\*"/>
              </xs:restriction>
          </xs:simpleType>
          <xs:attributeGroup name="attlist.navigation">
              <xs:attribute name="from-action" type="pages:method-expression" />
              <xs:attribute name="evaluate" type="pages:method-expression" />
          </xs:attributeGroup>




      To :


          <xs:simpleType name="view-id">
              <xs:restriction base="xs:string"/>
          </xs:simpleType>
          <xs:attributeGroup name="attlist.navigation">
              <xs:attribute name="from-action" type="pages:literal-or-method-expression" />
              <xs:attribute name="evaluate" type="pages:method-expression" />
          </xs:attributeGroup>
          <xs:simpleType name="literal-or-method-expression">
              <xs:restriction base="xs:token"/>
          </xs:simpleType>




      Would validate my current pages.xml.


      Thanks !