<br><font size=2 face="sans-serif">Hi everybody,</font>
<br>
<br><font size=2 face="sans-serif">I´m trying to realize the following
xml-file to be editable in OpenCms with</font>
<br><font size=2 face="sans-serif">structured content. Till now I worked
with the examples in the documentation and everything was ok.</font>
<br><font size=2 face="sans-serif">I searched the mailing list but I found
nothing similar. </font>
<br><font size=2 face="sans-serif">Besides I´ve  got the opinion that
it is only possible to implement nothing execpt the given examples .</font>
<br><font size=2 face="sans-serif">The complex types for example seem not
to be allowed to have more than the language attribute.</font>
<br><font size=2 face="sans-serif">When I try to define some further attributes
to complex types of the xsd, I alwyas get errors.</font>
<br>
<br><font size=2 face="sans-serif">Has anybody succesfully written schema
definitions for a xml file like that?</font>
<br>
<br><font size=2 face="sans-serif">        <?xml
version="1.0" encoding="ISO-8859-1"?></font>
<br><font size=2 face="sans-serif">        <Productinhalt
Version="2.1.0" Name="Konfiguration"></font>
<br><font size=2 face="sans-serif">         
       <Product Key="02001"  Name=""
ProductServer=""  ProductPort="52224" ProductPath=""></font>
<br><font size=2 face="sans-serif">           
      </Product></font>
<br><font size=2 face="sans-serif">         
       <Product Key="23001" Name=""
ProductServer="" ProductPort="52224" ProductPath=""></font>
<br><font size=2 face="sans-serif">         
      </Product></font>
<br><font size=2 face="sans-serif">        </Productinhalt></font>
<br>
<br>
<br><font size=2 face="sans-serif">My last working schema looked like this,
but it is only possible with diffentent elements, not with several attributes.</font>
<br>
<br><font size=2 face="sans-serif"><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"></font>
<br><font size=2 face="sans-serif"><xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/></font>
<br><font size=2 face="sans-serif">        <xsd:element
name="Productinhalts" type="OpenCmsProductinhalts"
/></font>
<br><font size=2 face="sans-serif">        </font>
<br><font size=2 face="sans-serif">        <xsd:complexType
name="OpenCmsProductinhalts"></font>
<br><font size=2 face="sans-serif">         
      <xsd:sequence></font>
<br><font size=2 face="sans-serif">         
              <xsd:element
name="Productinhalt" type="OpenCmsProductinhalt" minOccurs="0"
maxOccurs="unbounded"/></font>
<br><font size=2 face="sans-serif">         
      </xsd:sequence></font>
<br><font size=2 face="sans-serif">        </xsd:complexType></font>
<br>
<br><font size=2 face="sans-serif">        <xsd:complexType
name="OpenCmsProductinhalt"></font>
<br><font size=2 face="sans-serif">         
      <xsd:sequence></font>
<br><font size=2 face="sans-serif">         
              <xsd:element
name="Key" type="OpenCmsString" /></font>
<br><font size=2 face="sans-serif">         
              <xsd:element
name="Name" type="OpenCmsString" /></font>
<br><font size=2 face="sans-serif">         
              <xsd:element
name="ProductServer" type="OpenCmsString" /></font>
<br><font size=2 face="sans-serif">         
              <xsd:element
name="ProductPort" type="OpenCmsString" /></font>
<br><font size=2 face="sans-serif">         
              <xsd:element
name="ProductPath" type="OpenCmsString" /></font>
<br><font size=2 face="sans-serif">         
      </xsd:sequence></font>
<br><font size=2 face="sans-serif">         
      <xsd:attribute name="language"
type="OpenCmsLocale" use="required" /></font>
<br><font size=2 face="sans-serif">        </xsd:complexType>
       </font>
<br><font size=2 face="sans-serif">        </font>
<br><font size=2 face="sans-serif">        <xsd:annotation></font>
<br><font size=2 face="sans-serif">         
      <xsd:appinfo>        
               </font>
<br><font size=2 face="sans-serif">         
              <resourcebundle
name="de.inverso.vkb.vp.workplace"/></font>
<br><font size=2 face="sans-serif">         
              <mappings/></font>
<br><font size=2 face="sans-serif">         
              <defaults/></font>
<br><font size=2 face="sans-serif">         
              <layouts/></font>
<br><font size=2 face="sans-serif">         
      </xsd:appinfo></font>
<br><font size=2 face="sans-serif">        </xsd:annotation>
 </font>
<br><font size=2 face="sans-serif"> </xsd:schema></font>
<br>
<br>
<br><font size=2 face="sans-serif">Result xml file:</font>
<br>
<br><font size=2 face="sans-serif"><?xml version="1.0" encoding="UTF-8"?></font>
<br><font size=2 face="sans-serif"><Productinhalts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="opencms://system/modules/de.inverso.vkb.vp/schemas/vp_content.xsd"></font>
<br><font size=2 face="sans-serif">  <Productinhalt language="en"></font>
<br><font size=2 face="sans-serif">    <Product></font>
<br><font size=2 face="sans-serif">      <Key><![CDATA[02001]]></Key></font>
<br><font size=2 face="sans-serif">      <Name/></font>
<br><font size=2 face="sans-serif">      <ProductServer/></font>
<br><font size=2 face="sans-serif">      <ProductPort><![CDATA[52224]]></ProductPort></font>
<br><font size=2 face="sans-serif">      <ProductPath/></font>
<br><font size=2 face="sans-serif">    </Product></font>
<br><font size=2 face="sans-serif">    <Product></font>
<br><font size=2 face="sans-serif">      <Key><![CDATA[23001]]></Key></font>
<br><font size=2 face="sans-serif">      <Name/></font>
<br><font size=2 face="sans-serif">      <ProductServer/></font>
<br><font size=2 face="sans-serif">      <ProductPort><![CDATA[52224]]></ProductPort></font>
<br><font size=2 face="sans-serif">      <ProductPath/></font>
<br><font size=2 face="sans-serif">    </Product></font>
<br><font size=2 face="sans-serif">  </Productinhalt></font>
<br><font size=2 face="sans-serif"></Productinhalts></font>
<br>
<br>
<br><font size=2 face="sans-serif">Thanks for your help!</font>
<br>
<br><font size=2 face="sans-serif">Best regards,</font>
<br>
<br><font size=2 face="sans-serif">Nadine Schuchhardt</font>
<br>