<p>How did you get nested content in a schema?  Whenever I try, I get the following error:</p>

<pre>Exactly 2 complex type definitions are required, not 3.</pre>

<p>Here's my test schema:</p>

<pre>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        elementFormDefault="qualified">

        <xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd" />

        <xsd:element name="contents" type="OpenCmsContents" />

        <xsd:complexType name="OpenCmsNestedcontents">
                <xsd:sequence>
                        <xsd:element name="content" type="OpenCmsContent"
                                minOccurs="0" maxOccurs="unbounded" />
                </xsd:sequence>
        </xsd:complexType>

        <xsd:complexType name="OpenCmsContent">
                <xsd:sequence>
                        <xsd:element name="nestedcontent" type="OpenCmsNestedcontent" maxOccurs="5"/>
                </xsd:sequence>
                <xsd:attribute name="language" type="OpenCmsLocale"
                        use="required" />
        </xsd:complexType>

        <xsd:complexType name="OpenCmsNestedcontent">
                <xsd:sequence>
                        <xsd:element name="Key" type="OpenCmsString" />
                        <xsd:element name="Value" type="OpenCmsString" />
                </xsd:sequence>
        </xsd:complexType>

</xsd:schema>
</pre>

<p>Thanks,<br />
Eric</p>
<br><hr align="left" width="300">
View this message in context: <a href="http://www.nabble.com/Nested-Structured-Content-and-Locale-tf3644477.html#a10274285">Re: Nested Structured Content and Locale</a><br>
Sent from the <a href="http://www.nabble.com/OpenCMS---Dev-f654.html">OpenCMS - Dev mailing list archive</a> at Nabble.com.<br>