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

Problems restricting UBL's AddressType complexType

  • To: <xml-dev@l...>
  • Subject: Problems restricting UBL's AddressType complexType
  • From: "Allison Bloodworth" <abloodworth@b...>
  • Date: Mon, 9 Jan 2006 19:25:34 -0800
  • Thread-index: AcYVlYLUvM/EK7J1Qt2NFMJ+Mnw6tA==

rcase recurse.2
Hi, 

I've spent several hours trying to figure out why I can't restrict UBL's
AddressType
(http://docs.oasis-open.org/ubl/cd-UBL-1.0/xsd/common/UBL-CommonAggregateCom
ponents-1.0.xsd) to remove certain elements. My (currently invalid) schema
attempting to do this is here:
http://groups.sims.berkeley.edu/EventCalendar/UCBAddress.xsd. I am only
trying use restriction to remove elements that are minOccurs="0", and many I
was successfully able to remove. However, when trying to remove elements
that are part of AddressType which look like this:

<xs:element name="ID" type="udt:IdentifierType" minOccurs="0" maxOccurs="1">

I'm told by Oxygen that: 

Description: E derivation-ok-restriction.5.4.2: Error for type
'UCBAddressType'.  The particle of the type is not a valid restriction of
the particle of the base.

URL: http://www.w3.org/TR/xmlschema-1/#derivation-ok-restriction

AND

Description: E rcase-Recurse.2: There is not a complete functional mapping
between the particles.

URL: http://www.w3.org/TR/xmlschema-1/#rcase-Recurse 


I read the spec and it *seems* that I've met all the requirements, but the
spec is a bit hard to read. I simply copied AddressType from the UBL schema
to begin building my restriction so I'm not sure what I could be missing.
Any help would be much appreciated!
 
Allison Bloodworth
Principal Administrative Analyst
e-Berkeley Program Office
University of California, Berkeley
(415) 377-8243
abloodworth@b...




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.