Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using an element's value as the minExclusive of another

Status
Not open for further replies.

Stretchwickster

Programmer
Apr 30, 2001
1,746
GB
Is it possible in a schema to set an element's value as the minExclusive restriction of another element.

For example:
Code:
<xsd:element name="loVal">
 <xsd:simpleType>
  <xsd:restriction base="xsd:float">
   <xsd:minInclusive value="0.01"/>
   <xsd:maxInclusive value="10"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>
<xsd:element name="hiVal">
 <xsd:simpleType>
  <xsd:restriction base="xsd:float">
   [b]<xsd:minExclusive value=loVal/>[/b]
   <xsd:maxInclusive value="10"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Don't think so.

Jon

"I don't regret this, but I both rue and lament it.
 
Ok. Thanks anyway.

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top