<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.hps
{mso-style-name:hps;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hey, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You have to make the choice-element in your own schema. <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;background:silver;mso-highlight:silver;mso-fareast-language:EN-US'>xsd:complexType</span><span style='font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-US'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"OpenCmsArticle"</span></i><span style='color:teal'>></span><o:p></o:p></span></p><p class=MsoNormal style='text-indent:35.4pt;text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-US'>xsd:sequence</span><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'>></span><span style='font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:EN-US'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-US'>xsd:element</span><span style='font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-US'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"Title"</span></i> <span style='color:#7F007F'>type</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"<u>OpenCmsString</u>"</span></i><span style='color:teal'>/></span><span style='color:black'> <o:p></o:p></span></span></p><p class=MsoNormal style='margin-left:35.4pt;text-indent:35.4pt;text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:EN-US'>[…] </span><span style='font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt;text-indent:35.4pt;text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-US'>xsd:element</span><span style='font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-US'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"ContextTeaser"</span></i> <span style='color:#7F007F'>type</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"</span><u><span style='color:#F79646'>OpenCmsContextTeaser</span></u><span style='color:#2A00FF'>"</span></i> <span style='color:#7F007F'>minOccurs</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"0"</span></i> <span style='color:#7F007F'>maxOccurs</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"unbounded"</span></i><span style='color:teal'>/></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:EN-US'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'></</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-US'>xsd:sequence</span><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'>></span><span style='font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal style='text-indent:35.4pt;text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-US'>xsd:attribute</span><span style='font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-US'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"language"</span></i> <span style='color:#7F007F'>type</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"<u>OpenCmsLocale</u>"</span></i> <span style='color:#7F007F'>use</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"required"</span></i><span style='color:teal'>/></span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'></</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;background:silver;mso-highlight:silver;mso-fareast-language:EN-US'>xsd:complexType</span><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'>></span><span lang=EN><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-US'>xsd:complexType</span><span style='font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-US'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"</span><span style='color:#F79646'>OpenCmsContextTeaser</span><span style='color:#2A00FF'>"</span></i><span style='color:teal'>></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:EN-US'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-US'>xsd:choice</span><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'>></span><span style='font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:EN-US'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-US'>xsd:element</span><span style='font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-US'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"TextTeaser"</span></i> <span style='color:#7F007F'>type</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"<u>OpenCmsTextTeaser</u>" </span></i><span style='color:#7F007F'>minOccurs</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"0"</span></i><span style='color:teal'>/></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:EN-US'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-US'>xsd:element</span><span style='font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-US'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"LinkListTeaser"</span></i> <span style='color:#7F007F'>type</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"<u>OpenCmsLinkListTeaser</u>"</span></i> <span style='color:#7F007F'>minOccurs</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"0"</span></i><span style='color:teal'>/></span><span style='color:black'> </span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:EN-US'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-US'>xsd:element</span><span style='font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-US'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"Contact"</span></i> <span style='color:#7F007F'>type</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"<u>OpenCmsVfsFile</u>"</span></i> <span style='color:#7F007F'>minOccurs</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"0"</span></i><span style='color:teal'>/></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:EN-US'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'></</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-US'>xsd:choice</span><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'>></span><span style='font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black;mso-fareast-language:EN-US'> </span><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'><</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-US'>xsd:attribute</span><span style='font-size:10.0pt;font-family:Consolas;mso-fareast-language:EN-US'> <span style='color:#7F007F'>name</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"language"</span></i> <span style='color:#7F007F'>type</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"<u>OpenCmsLocale</u>"</span></i> <span style='color:#7F007F'>use</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"optional"</span></i><span style='color:teal'>/></span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'></</span><span style='font-size:10.0pt;font-family:Consolas;color:#3F7F7F;mso-fareast-language:EN-US'>xsd:complexType</span><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'>><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:Consolas;color:teal;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Regards, Patric<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>Im Auftrag von </b>Thomas Göttlich<br><b>Gesendet:</b> Mittwoch, 28. September 2011 11:55<br><b>An:</b> The OpenCms mailing list<br><b>Betreff:</b> [opencms-dev] XML-Content xsd:choice<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi, <br><br>how would I use the xsd:choice element in my schemas?<br><br>Currently I tried the following but I get "invalid schema structure" errors:<br><br><br><xsd:complexType name="OpenCmsTest"><br> <xsd:sequence><br> <xsd:choice><br> <!-- <br> <xsd:element name="MT1" type="OpenCmsModule1" minOccurs="0" /><br> <xsd:element name="MT2" type="OpenCmsModule2" minOccurs="0" /><br> --><br> <xsd:element name="Headline" type="OpenCmsString"<br> minOccurs="1" maxOccurs="1" /><br> <xsd:element name="Title" type="OpenCmsString"<br> minOccurs="1" maxOccurs="1" /><br> </xsd:choice><br> </xsd:sequence><br> <br> <!-- 6. locale attribute is required --><br> <xsd:attribute name="language" type="OpenCmsLocale"<br> use="optional"/><br> </xsd:complexType><br><br>Unfortunately I did find any documentation or examples, just notes that it is now possible to use that.<br><br>Thanks in advance,<br><br>Thomas<o:p></o:p></p></div><br><span style="font-size: 8pt; color: rgb(169, 169, 169);"><span style="font-family: Arial; font-size: 8pt;">_____________________________________________________________________<br /><br />
<span style="font-size: 8pt; color: rgb(169, 169, 169);">Vorstand: Ralf Heller, Udo Möbes <br />
Vorsitzende des Aufsichtsrates: Kirsten Heller <br />
Sitz der Gesellschaft: Gruenwaelderstrasse 10-14, D-79098 Freiburg <br />
Amtsgericht Freiburg HRB 6218<br />
<br />
Versand am 28.09.2011 12:30 von dosch patric<br />
Validation-Code: 4055011134176</span><br />
</span></span>
<br></body></html>