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

using the maxOccurs contruct with sequences.

From: <Ken_Gross@Countrywide.Com>
Date: Mon, 14 Mar 2005 08:55:53 -0800
To: xmlschema-dev@w3.org
Message-ID: <OF9242F738.46F4C4FC-ON88256FC4.005CAA5D-88256FC4.005D01E5@countrywide.com>
contruct
In the following example, there are two representations of an unbounded 
sequence of elements in  "ReportOptionsModel".   Is the first 
representation ever justified?  If it is, when should it be used?

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

<?xml version="1.0" encoding="UTF-8"?>
<w3cSchema:schema 
xmlns:StandardType="http://www.countrywide.com/SMTG/XMLSchema/StandardType" 
xmlns:TransactionClass="http://www.countrywide.com/SMTG/XMLSchema/TransactionClass" 
xmlns:w3cSchema="http://www.w3.org/2001/XMLSchema" 
xmlns:AIRulesServiceRunModel="http://www.countrywide.com/SMTG/XMLSchema/AIRulesServiceRunModel" 
targetNamespace="http://www.countrywide.com/SMTG/XMLSchema/AIRulesServiceRunModel" 
elementFormDefault="unqualified" attributeFormDefault="unqualified">
        <w3cSchema:complexType name="ReportOptionsModel1">
                <w3cSchema:sequence maxOccurs="unbounded">
                        <w3cSchema:element name="Filter"/>
                </w3cSchema:sequence>
        </w3cSchema:complexType>
        <w3cSchema:complexType name="ReportOptionsModel2">
                <w3cSchema:sequence>
                        <w3cSchema:element name="Filter" 
maxOccurs="unbounded"/>
                </w3cSchema:sequence>
        </w3cSchema:complexType>
</w3cSchema:schema>
Received on Monday, 14 March 2005 16:56:38 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.