AnsweredAssumed Answered

Web form error

Question asked by rguedes@al.sp.gov.br on Feb 21, 2011
Latest reply on Feb 22, 2011 by sujaypillai
Hi, folks!

I am just getting started with Alfresco and now I am creating a new Web Form.

I created the following XSD file, but when I try to import it I get the folowing error "Please correct the errors below then click Finish.
unable to parse formradio.xsd: The prefix "xs" for element "xs:schema" is not bound. " - "This schema does not contain any element declarations. A schema must contain at least one element declaration in order to generate a form."


Please, what is wrong with this code?

<?xml version="1.0" encoding="iso-8859-1"?>
<xs:schema xmls:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:trn="http://localhost/radionova"
         xmlns:alf="http://localhost"
         targetNamespace="http://localhost/radionova"
         elementFormDefault="qualified">
<xs:element name="radionova">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="titulo" type="xs:normalizedString" />
      <xs:element name="resumo" type="xs:normalizedString" />
      <xs:element name="texto" type="xs:String" />
      <xs:element name="autor" type="xs:normalizedString" />
      <xs:element name="datapublicacao" type="xs:date" />
      <xs:element name="arquivo" type="anyURI" minOccurs="1" maxOccurs="5" />
     </xs:sequence>
   </xs:complexType>
</xs:element>        
</xs:schema>

Outcomes