W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2006

special tags

From: Debora Vanni <debora.vanni@tvblob.com>
Date: Thu, 21 Sep 2006 16:28:44 +0200
To: xmlschema-dev@w3.org
Message-Id: <1158848924.8344.10.camel@localhost.localdomain>

I have this problem now.
I have this xml messagge

           <parameters>
                <family-name>Rossi</family-name>
                <first-name>Paolo</first-name>
                <cod-fisc>123123123</cod-fisc>
	      <home-address>via Vai</home-address>
	      <cell-phone>12354356</cell-phone>
	      <e-mail> pippo@yrr.it.net</e-mail>
            </parameters>            
 The problem is that family-name, first-name, cod-fisc and home-address are mandatory and I need at least one of cell-phone
 or e-mail, so I could have these 3 kind of messages:
          <parameters>
                <family-name>Rossi</family-name>
                <first-name>Paolo</first-name>
                <cod-fisc>123123123</cod-fisc>
	      <home-address>via Vai</home-address>
	      <cell-phone>12354356</cell-phone>
	      <e-mail> pippo@yrr.it.net</e-mail>
            </parameters>

          <parameters>
                <family-name>Rossi</family-name>
                <first-name>Paolo</first-name>
                <cod-fisc>123123123</cod-fisc>
	      <home-address>via Vai</home-address>
	      <cell-phone>12354356</cell-phone>

            </parameters>

          <parameters>
                <family-name>Rossi</family-name>
                <first-name>Paolo</first-name>
                <cod-fisc>123123123</cod-fisc>
	      <home-address>via Vai</home-address>

	      <e-mail> pippo@yrr.it.net</e-mail>
            </parameters>

There is some way to do this with XSD?
Thank you very much for your help
Debora Vanni
Received on Thursday, 21 September 2006 14:29:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:55 GMT