[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

conjunction types

  • From: "Arnold, Curt" <Curt.Arnold@h...>
  • To: "'xml-dev@x...'" <xml-dev@x...>, "'www-xml-schema-comments@w...'" <www-xml-schema-comments@w...>
  • Date: Fri, 3 Mar 2000 09:26:37 -0700

types of conjunction
At XTech, I asked a question about whether conjunction types might be considered.  I thought that I had put a message in the comments log on my thoughts on this, however it seemed to only get into the
help file that I published.

The following facets would seem to address quite a few constructs that appear within Schema for Schema and a few things like multiple, disjunctive value ranges from
http://lists.w3.org/Archives/Public/www-xml-schema-comments/1999OctDec/0034.html

<or>

The <or> facet is satisfied if any of the contained facets is satisified.

<and>

The <and> facet is satisified if all of the contained facets are satisifed.

<nor>

The <nor> facet is satified if none of the contained facets are satisified.  A <nor> with
a single contained facet is used to perform a not operation.

<conform>

The conform facet is satified if the lexical representation would be acceptible
to the specified datatype.

<enumeration>

For this to work right, <enumeration> needs to become a container of <literal>
elements which will make it logically equivalent to all the other facets.

Examples:

<simpleType name="maxOccur" base="string">
	<or>
		<conform type="non-negative-integer"/>
		<enumeration><literal value="*"/></enumeration>
	</or>
</simpleType>

--------------------

<simpleType name="noTeens" base="integer">
	<or>
		<and>
			<minInclusive value="0"/>
			<maxExclusive value="10"/>
		</and>
		<minInclusive value="20"/>
	</or>
</simpleType>

----------------------
<simpleType name="targetOrNamespace" base="string">
	<or>
		<enumeration><literal value="##targetNamespace"/></enumeration>
		<conform type="uri-reference"/>
	</or>
</simpleType>

<simpleType name="targetOrNamespaces" base="targetOrNamespace" derivedBy="list"/>

<simpleType name="anyAttribute" base="string">
	<or>
		<enumeration>
			<literal value="##any"/>
			<literal value="##other"/>
			<literal value="##local"/>
		</enumeration>
		<conform type="targetOrNamespaces"/>
	</or>
</simpleType>




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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.