Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


extending validation

From: <tgrzej10@------.-->
To: xmlschema-dev@--.---
Date: 3/18/2005 4:59:00 PM
Hi,
My question is about technology that would allow to validate
element's value against (let's say) database content. For example
I'd like to make a validation rule like this:

<xsd:simpleType name="USState">
  <xsd:restriction base="xsd:string">
    <xsd:enumeration value="AK"/>
    <xsd:enumeration value="AL"/>
    <xsd:enumeration value="AR"/>
    <!-- and so on ... -->
  </xsd:restriction>
</xsd:simpleType>

but with enumeration values taken from external resource (like
database).
One way to achive this seems to be to dynamically generate required
schema based on database content. On the other hand maybe there are
existing schema validators that allow to call custom functions (that
would perform neccessary checks) while validating a document. Or
maybe in XML Schmema itself there is some construct that would allow
to tell "call external procedure foo to validate this element".


I'd be gratefull for any hints and comments,
-- 
Tomek Grzejszczyk



From mike@s... Fri Mar 18 18:04:59 2005
Received: from bart.w3


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent