You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Rajan Gupta <rg...@yahoo.com> on 2001/03/28 23:05:11 UTC

RE: XMLSchema:Can we specify a restriction on the content for an element

Thanks for the reply. More broadly, can the content of an element be
forced to match another element's attribute's value? e.g.

<Foo ID="OneX">
  <Value1> a </Value1>
  <Value2> b </Value2>
</Foo>

<Bar ID="OneV">
  <Value1> a </Value1>
  <Value2> b </Value2>
</Bar>

<Bar ID="OneY">
  <Value1> a </Value1>
  <Value2> b </Value2>
</Bar>

<MyElement ID="Ten">
    <canonlyreferenceBar> OneV </canonlyreferenceBar> 
        <!-- OneX will be invalid, while OneV & OneY are valid -->
</MyElement>


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org