OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   how far should you go with XML schema?

[ Lists Home | Date Index | Thread Index ]
  • From: "David Valera" <dvalera@pcl-hage.nl>
  • To: <xml-dev@xml.org>
  • Date: Tue, 30 May 2000 09:53:26 +0200


Since I started the development of an XML schema for the XML documents I
will need to validate, I have been asking myself:

What are the limitations of XML schema if you compare them with RDMS

I ask this because in the XML messages I have there are a few conditions
that cannot be expressed in XML schema. Just to ilustrate take the following


I would love to have the possibility of having something like this in XML
schema: (look at the condition attributes in the dateofwedding element)

<xsd:element name="myroot">
 <xsd:complexType content="elementOnly">
  <xsd:element name="married">
   <xsd:simpleType base="xsd:string">
	<xsd:enumeration value="yes"/>
	<xsd:enumeration value="no"/>
  <xsd:element name="dateofwedding"
    type="xsd:date" condition="if married=yes" then="minOccurs="0""

"if married=yes" should of course be an xsl statement, but I hope you get
the point.

Is this a desirable development in XML schema? Will something like this be
implemented in future versions of XML schema? are there other XML drafts
that combine XML schema and lets say XSL do this kind of condition checking
during validation?

Thanks in advance for any thoughts on this...

David Valera

This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS