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

Custom discriminators

From: Gregor Zeitlinger <gregor.zeitlinger@torexretail.de>
Date: Sun, 18 Dec 2005 12:07:20 +0100
Message-ID: <5DE489C997EC984FA3DD0935879DAE1255EB15@ex09-00-z002.torexretail.de>
To: <xmlschema-dev@w3.org>
discriminators
Hi,
 
I've seen that you can use xsi:type to define discriminators in XML Schema instance documents.
I was wondering if it is possible to define custom discriminators.
 
Why do I need that?
The XML language was not designed with XSD verification in mind.
So I have type="(date|time)". If type="date" there are addional attributes available.
 
In another situation, there is an element with two discriminator attributes:
type="(|password)" and multiline="(true|false)".
I want to assign four different Schema types based on the combinations of those attributes.
Is that possible?
 
Gregor
Received on Sunday, 18 December 2005 11:04:50 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.