<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Federico,<br>
<br>
in this case I used this workaround: create a nested content with
the fields (Internal, External) and then create a structured
content that calls your nested content using a required field,
like in this example:<br>
<br>
<div><xsd:complexType name="....."></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><xsd:sequence></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><xsd:element
name="YourName" type="OpenCmsNestedContent" minOccurs="1"
maxOccurs="1" /></div>
<span class="Apple-tab-span" style="white-space:pre"></span></xsd:sequence><span
class="Apple-tab-span" style="white-space:pre"></span>
<div></xsd:complexType></div>
<br>
I hope this help you.<br>
<br>
Kind regards <br>
Antonio<br>
<br>
On 03/09/2012 11.26, federico cacciapuoti wrote:<br>
</div>
<blockquote
cite="mid:CAApikwi57m08EueYUhUZ+YUU678Sg_6ZBdehqR1=-1huFe0V-Q@mail.gmail.com"
type="cite">
<div>Hi to all,</div>
<div><br>
</div>
<div>I'm using opencms 7</div>
<div>I have this situations:</div>
<div><br>
</div>
<div>........</div>
<div>
<div><xsd:complexType name="....."></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><xsd:sequence></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><xsd:element
maxOccurs="1" minOccurs="0" name="Internal"
type="OpenCmsVfsFile"/></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span><xsd:element
maxOccurs="1" minOccurs="0" name="External" type="...."/></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span></xsd:sequence></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span></div>
<div></xsd:complexType></div>
......</div>
<div><br>
</div>
<div>I need that al least one of these two fields have to be
required but not both. </div>
<div><br>
</div>
<div>So in the workplace I can't save the changes to an "object"
if I don't fill at least one of the two fields.</div>
<div><br>
</div>
<div>There is in opencms an option to make this?</div>
<div>I was thinking to do that, using a regular expression, but i
don't know if I can recover the fields and use them in
<validationrules> tag.</div>
<div><br>
</div>
<div>Thanks.</div>
<div><br>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">
_______________________________________
Coranto informatica di Antonio Cordeddu
Via Torricelli, 9 09047 Selargius (CA)
<a class="moz-txt-link-abbreviated" href="mailto:antoniocordeddu@coranto.it">antoniocordeddu@coranto.it</a>
Skype: antonio.cordeddu
<a class="moz-txt-link-freetext" href="http://www.coranto.it">http://www.coranto.it</a>
___________________________________________</pre>
</body>
</html>