[opencms-dev] make required one of two fields

federico cacciapuoti fe.cacciapuoti at gmail.com
Mon Sep 3 16:55:44 CEST 2012


Thanks wolfgang!

2012/9/3 Wolfgang Illmeyer <wolfgang.illmeyer at gmx.net>

> **
>
> Hi,
>
>
>
> You can implement any validation that you can think of using an
> XmlContentHandler.
>
>
>
> http://www.opencms-wiki.org/wiki/Custom_XML_Content_Validation
>
>
>
>
>
> Regards,
>
> Wolfgang
>
>
>
>
>
> Am Montag, 3. September 2012, 12:18:56 schrieb federico cacciapuoti:
>
> Thanks Antonio,
>
>
> I think it's a good solution but i was looking for a workaround that
> doesn't change the complete structure of the xsd file, because we already
> use that xsd in a best part of the project.
>
>
> I was looking for something like this,
>
> In validation rules tag we use to do this
>
>
> <validationrules>
>
>     <rule 1....>
>
>     <rule 2....>
>
>     <rule 3....>
>
>      .
>
>      .
>
> </validationrules>
>
>
> and automatically opencms make the logic "AND"  of this rules.
>
> I need something like this
>
>
> <validationrules>
>
>     <rule ....>
>
>     <rule ....>
>
>     <rule ....>
>
>      (<rule x> or <rule y>)
>
>      .
>
> </validationrules>
>
>
> I don't know if it's possible to make this kind of rules.
>
>
> Thanks again!
>
>
>
> _______________________________________________
> 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
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>


-- 
*Federico Cacciapuoti*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120903/19a19484/attachment.htm>


More information about the opencms-dev mailing list