[Using Sakai] some form questions

Luke FERNANDEZ LFERNANDEZ at weber.edu
Fri Apr 10 10:26:07 PDT 2009


 

I've just been fiddling with creating forms after a hiatus and I had a few questions.  I've been using the form builder at:

http://trident.cdws.ucf.edu/xsdweaver/

When I generated an  XSD (see the XSD in the PS) and then tried to create a form with it using the form tool the form tool wouldn't create it (although it didn't throw a validation error).  As a benchmark I tried running through the process again with an old XSD I had lying around (see PSS) and it worked. 

This suggests to me that the above URL for generating XSD may not always generate stuff that Sakai's form builder can consume.  Or is there another explanation?  What form builder are people using these days that will generate XSDs that Sakai will gulp down without issues?  

Cheers,

Luke

PS: (Bad XSD:)

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
	<xs:element name="">
		<xs:annotation>
			<xs:documentation source="ospi.label"></xs:documentation>
			<xs:documentation source="ospi.description"></xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
<xs:element name="Namex" minOccurs="1">
	<xs:annotation>
		<xs:documentation source="ospi.label">Labelx</xs:documentation>
		<xs:documentation source="ospi.description">Descriptionx</xs:documentation>
	</xs:annotation>
	<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:maxLength value="100"/>
		</xs:restriction>
	</xs:simpleType>
</xs:element>
<xs:element name="NamexFile" minOccurs="1">
	<xs:annotation>
		<xs:documentation source="ospi.label">LabexxFile</xs:documentation>
		<xs:documentation source="ospi.description">DescxFile</xs:documentation>
	</xs:annotation>
	<xs:simpleType>
		<xs:restriction base="xs:anyURI">
		</xs:restriction>
	</xs:simpleType>
</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>


PSS (Good XSD):

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
   <xs:element name="evaluation">
      <xs:complexType>
         <xs:sequence>
            <xs:element name="title" minOccurs="1" type="xs:string"/>
            <xs:element name="comment" minOccurs="1" type="xs:string">
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="512" />
                  </xs:restriction>
               </xs:simpleType>
               <xs:annotation>
                  <xs:documentation source="ospi.label">Write your evaluation below</xs:documentation>
                  <xs:documentation source="ospi.description">Give your reason here</xs:documentation>
                  <xs:documentation source="ospi.isRichText">true</xs:documentation>
               </xs:annotation>
            </xs:element>            
         </xs:sequence>
      </xs:complexType>
   </xs:element>
</xs:schema>




More information about the sakai-user mailing list