cancel
Showing results for 
Search instead for 
Did you mean: 

Web form error

rguedes
Champ in-the-making
Champ in-the-making
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="xsSmiley Frustratedtring" />
      <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>
1 REPLY 1

sujaypillai
Confirmed Champ
Confirmed Champ
I think your name space declaration –

xmlns:trn="http://localhost/radionova"
xmlns:alf="http://localhost"
targetNamespace="http://localhost/radionova"


is the cause for error.

Try to get more information on how to work with xsd namespace check out here : http://www.w3schools.com/schema/schema_schema.asp