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

XML schema with recursive SimpleType

From: Sucheta Phatak <sphatak@cs.iupui.edu>
Date: Fri, 29 May 2009 08:08:40 -0400
To: <xmlschema-dev@w3.org>
Message-ID: <00c401c9e056$34930770$9db91650$@iupui.edu>
XML schema with recursive SimpleType
Hello All,

 

I am trying to create a XML Schema which contains an element called as
"Pre-Condition" which defines a logical expression.

For this I need to define a type "LogicalExpressionType". This type will
look something like,

 

<xs:LogicalExpressionType>

                <union memberTypes="InfixExpressionType
PrefixExpressionType"/>

</ xs:LogicalExpressionType>

 

<xs: InfixExpressionType>

                A sequence of "LogicalExpressionType" "+|-|/|.."
"LogicalExpressionType"

<xs: InfixExpressionType>

 

Is there a way of defining such type, so as to ensure a valid pre-condition
value is specified in an XML. This is recursive simpleType, is it allowed?

Is there a better way of doing it?

 

-Sucheta.
Received on Friday, 29 May 2009 17:06:27 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.