W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2008

RE: Two attributes should have same reference point/Two elements should have same reference point under the same root elment

From: Michael Kay <mike@saxonica.com>
Date: Wed, 23 Jan 2008 09:24:45 -0000
To: <saisuman@tataelxsi.co.in>, <xmlschema-dev@w3.org>
Message-ID: <00d501c85da1$cb52acd0$6501a8c0@turtle>


I don't think this can be done without assertions, which is a new feature in
XSDL 1.1.

Michael Kay
http://www.saxonica.com/
 

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Sai Suman M
> Sent: 23 January 2008 04:53
> To: xmlschema-dev@w3.org
> Subject: Two attributes should have same reference point/Two 
> elements should have same reference point under the same root elment
> 
> 
> Hi,
> 
> Please let me know the case, i am giving the example here,
>  EX:
>  <staticroutes>
>        <ip ip="route1">
>          <via>192.168.55.1</via>
>  	  <via>192.168.55.1</via>
>          <mtu>5000</mtu>
>          <metric>5</metric>
>        </ip>
>  </staticroutes>
>  
>  In the above example two elments having the same name and  
> both contains the same value.If the user change the value of  
> one element via second element via should be changed with same value.
>  EX:
>  <staticroutes>
>        <ip ip="route1">
>          <via>192.168.55.2</via>
>  	  <via>192.168.55.2</via>
>          <mtu>5000</mtu>
>          <metric>5</metric>
>        </ip>
>  </staticroutes>
>  Both should point the same value.
>  
>  Please let me know the schema design for that.
>  
>  Thanks,
>  M.Saisuman.
> 
> 
> The information contained in this electronic message and any 
> attachments to this message are intended for the exclusive 
> use of the addressee(s) and may contain proprietary, 
> confidential or privileged information. If you are not the 
> intended recipient, you should not disseminate, distribute or 
> copy this e-mail. Please notify the sender immediately and 
> destroy all copies of this message and any attachments 
> contained in it.
> 
> Contact your Administrator for further information.
> 
> 
Received on Wednesday, 23 January 2008 09:25:05 GMT

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