<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have written a xml-schema which uses some
checkboxes but just do not succeed in setting a checkbox to "true" (checked) as
the default state when adding a new data set.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I thought a simple codeline like</FONT></DIV>
<DIV><FONT face=Arial size=2> <default
element="Checkbox_1" value="true" /></FONT></DIV>
<DIV><FONT face=Arial size=2>would do the task but it does not.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What is the trick? ( see code below)
</FONT></DIV>
<DIV> </DIV>
<DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Manfred</FONT></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----- START
----------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2><?xml version="1.0" encoding="utf-8"
?><BR><xsd:schema xmlns:xsd="<A
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>"
elementFormDefault="qualified"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> <xsd:include
schemaLocation="opencms://opencms-xmlcontent.xsd"/><BR> <BR>
<xsd:element name="SubmittedBys"
type="OpenCmsSubmittedBys"/><BR> <BR> <xsd:complexType
name="OpenCmsSubmittedBys"><BR> <xsd:sequence><BR> <xsd:element
name="SubmittedBy" type="OpenCmsSubmittedBy" minOccurs="0"
maxOccurs="unbounded"/><BR> </xsd:sequence><BR> </xsd:complexType></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> <xsd:complexType
name="OpenCmsSubmittedBy"><BR> <xsd:sequence><BR> <xsd:element
name="Test" type="OpenCmsString"
/><BR> <xsd:element name="Checkbox_1"
type="OpenCmsBoolean" /><BR> <xsd:element
name="Checkbox_2" type="OpenCmsBoolean"
/><BR> <xsd:element name="Checkbox_3"
type="OpenCmsBoolean" /><BR> <xsd:element
name="Checkbox_4" type="OpenCmsBoolean"
/><BR> </xsd:sequence><BR> <xsd:attribute
name="language" type="OpenCmsLocale"
use="optional"/><BR> </xsd:complexType></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2> <xsd:annotation><BR>
<xsd:appinfo><BR>
<layouts><BR>
</layouts><BR>
<defaults><BR> <default
element="Test" value="At least one
check box should be set"/><BR> <default
element="Checkbox_1" value="true" /><BR> <default
element="Checkbox_2" value="TRUE" /><BR> <default
element="Checkbox_3" value="1"
/><BR> <default element="Checkbox_4" value='true'
/><BR>
</defaults><BR>
</xsd:appinfo><BR> </xsd:annotation> </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></xsd:schema></FONT></DIV>
<DIV><FONT face=Arial size=2>----- END
----------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>