AnsweredAssumed Answered

questions about 2.9B making forms.

Question asked by sidi on Jan 10, 2008
Latest reply on Feb 26, 2008 by sidi
Due to de problem of diferent content tipes atributes mixed in advanced search I've diecide to test the new creating EMC forms option for new release. and I've had and xml error when building the form that I can't manage becouse an xml validation guives 0 errors but alfresco not. I`ll put de issue here but probably is a better place. Beside the error asking to Alfresco engeneers the problem of advanced search is going to be solved in new release?. Maybe it will be posible to search content using forms?. My xml Schema is this:

    <?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema  xmlns:xs = "http://www.w3.org/2001/XMLSchema">
  <xs:element name = "NumeroDocumento"  use="required">
       <xs:simpleType>
      <xs:restriction base = "xs:string">
        <xs:maxLength value = "42"></xs:maxLength>
      </xs:restriction>
    </xs:simpleType>
  </xs:element>
  <xs:element name = "NumeroExpediente" use="required">
       <xs:simpleType>
      <xs:restriction base = "xs:string">
        <xs:maxLength value = "30"></xs:maxLength>
      </xs:restriction>
    </xs:simpleType>
  </xs:element>
  <xs:element name = "NIF" use="required">
       <xs:simpleType>
      <xs:restriction base = "xs:string">
        <xs:maxLength value = "10"></xs:maxLength>
      </xs:restriction>
    </xs:simpleType>
  </xs:element>
  <xs:element name = "ApellidosNombre" use="required">
       <xs:simpleType>
      <xs:restriction base = "xs:string">
        <xs:maxLength value = "125"></xs:maxLength>
      </xs:restriction>
    </xs:simpleType>
    </xs:element>
  <xs:element name = "CodigoTerritorial">
       <xs:simpleType>
      <xs:restriction base = "xs:string">
        <xs:maxLength value = "10"></xs:maxLength>
      </xs:restriction>
    </xs:simpleType>
  </xs:element>
   <xs:element name = "Municipio" use="required">
       <xs:simpleType>
      <xs:restriction base = "xs:string">
        <xs:maxLength value = "40"></xs:maxLength>
      </xs:restriction>
    </xs:simpleType>
  </xs:element>
  <xs:element name = "FechaEmision" type="xs:date">
  </xs:element>
  <xs:element name = "Documento" use="required">
       <xs:simpleType>
      <xs:restriction base = "xs:string">
        <xs:maxLength value = "40"></xs:maxLength>
      </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element name = "Importe" type="xs:decimal"  >
       <xs:simpleType>
      <xs:restriction base = "xs:decimal">
        <xs:maxLength value = "12"></xs:maxLength>
        <xs:fractionDigits value = "2"> </xs:fractionDigits>
      </xs:restriction>
    </xs:simpleType>
  </xs:element>
  <xs:element name = "NumIntentos">
       <xs:simpleType>
      <xs:restriction base = "xs:string">
        <xs:maxLength value = "1"></xs:maxLength>
        <xs:mininclusive value="1"></xs:mininclusive>
        <xs:maxinclusive value="3"></xs:maxinclusive>
      </xs:restriction>
    </xs:simpleType>
  </xs:element>
  <xs:element name = "Resultado">
       <xs:simpleType>
      <xs:restriction base = "xs:string">
        <xs:maxLength value = "1"></xs:maxLength>
        <xs:mininclusive value="1"></xs:mininclusive>
        <xs:maxinclusive value="9"></xs:maxinclusive>
      </xs:restriction>
    </xs:simpleType>
  </xs:element>
  <xs:element name = "FechaEstado" type="xs:date">
  </xs:element>
   <xs:element name = "Notificador">
       <xs:simpleType>
      <xs:restriction base = "xs:string">
        <xs:maxLength value = "2"></xs:maxLength>
      </xs:restriction>
    </xs:simpleType>
    </xs:element>
  </xs:schema>

the error that gives is:

org.alfresco.web.forms.FormProcessor$ProcessingException: org.alfresco.web.forms.xforms.FormBuilderException: error parsing schema: at line 75 column 37: s4s-elt-must-match.1: The content of 'restriction' must match (annotation?, (simpleType?, (minExclusive | minInclusive | maxExclusive | maxInclusive | totalDigits | fractionDigits | length | minLength | maxLength | enumeration | whiteSpace | pattern)*)). A problem was found starting at: mininclusive.

When creating content from de add content icon or using advanced search does not appear de form selecction.

Could someone of the Alfresco Team tell me something about my doubs?
thanks in advance

Outcomes